Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceName = "user-settings-service"
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` MetricsPort int `mapstructure:"metrics_port"` LogLevel string `mapstructure:"log_level"` }
Service is a base config options struct for all services
func (*Service) SetLogLevel ¶
func (s *Service) SetLogLevel()
SetLogLevel sets the log level for the service
type UserSettings ¶
type UserSettings struct { Service `mapstructure:"service"` Postgres `mapstructure:"postgres"` *certs.TLSConfig `mapstructure:"tls"` // contains filtered or unexported fields }
func (*UserSettings) GetStorage ¶
func (s *UserSettings) GetStorage() storage.Client
GetStorage returns the storage client for the service
func (*UserSettings) SetStorage ¶
func (s *UserSettings) SetStorage(c storage.Client)
SetStorage sets the storage client for the service
Click to show internal directories.
Click to hide internal directories.