25 lines
608 B
Go
25 lines
608 B
Go
package config
|
|
|
|
// @todo need to decide on settings format & structure...
|
|
// type (
|
|
// // AuthSettings holds configuration settings for auth service
|
|
// AuthSettings struct {
|
|
// Owner struct {
|
|
// Handle struct {
|
|
// // How long can a user's handle be
|
|
// MaxLength uint `json:"maxLength,omitempty"`
|
|
//
|
|
// // Enable user handles
|
|
// Enabled bool `json:"enabled,omitempty"`
|
|
// } `json:"handle,omitempty"`
|
|
// } `json:"user,omitempty"`
|
|
// }
|
|
// )
|
|
//
|
|
// func DefaultAuthSettings() (s AuthSettings) {
|
|
// s.Owner.Handle.MaxLength = 20
|
|
// s.Owner.Handle.Enabled = true
|
|
//
|
|
// return s
|
|
// }
|