3
0
corteza/internal/config/auth_settings.go
Denis Arh 2748847ee9 Add (created|updated|delete)_by fields on record
Move data manipulation from repo to service layer
2019-01-21 14:42:07 +01:00

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
// }