Documentation ¶
Overview ¶
Package config provides helper structs for common components configuration.
All structs in this package implements goconfig.Configurable interface.
This package is a work in progress and makes no API stability promises.
Index ¶
- type APIServicesCfg
- func (cfg *APIServicesCfg) BindViper(v *viper.Viper, prefix string)
- func (cfg APIServicesCfg) Dump() string
- func (cfg APIServicesCfg) Empty() bool
- func (cfg *APIServicesCfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *APIServicesCfg) SetPFlags(short bool, prefix string)
- func (cfg APIServicesCfg) Validate() error
- type ClientCfg
- type EventNotifyCfg
- func (cfg *EventNotifyCfg) BindViper(v *viper.Viper, prefix string)
- func (cfg EventNotifyCfg) Dump() string
- func (cfg EventNotifyCfg) Empty() bool
- func (cfg *EventNotifyCfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *EventNotifyCfg) SetPFlags(short bool, prefix string)
- func (cfg EventNotifyCfg) Validate() error
- type HealthCfg
- type LoggerCfg
- type ServerCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServicesCfg ¶
APIServicesCfg stores api services configuration.
func (*APIServicesCfg) BindViper ¶
func (cfg *APIServicesCfg) BindViper(v *viper.Viper, prefix string)
BindViper setups posix flags for commandline configuration and bind to viper.
func (APIServicesCfg) Empty ¶
func (cfg APIServicesCfg) Empty() bool
Empty returns true if configuration is empty.
func (*APIServicesCfg) FromViper ¶
func (cfg *APIServicesCfg) FromViper(v *viper.Viper, prefix string)
FromViper fill values from viper.
func (*APIServicesCfg) SetPFlags ¶
func (cfg *APIServicesCfg) SetPFlags(short bool, prefix string)
SetPFlags setups posix flags for commandline configuration.
func (APIServicesCfg) Validate ¶
func (cfg APIServicesCfg) Validate() error
Validate checks that configuration is ok.
type ClientCfg ¶
ClientCfg stores grpc client preferences.
type EventNotifyCfg ¶
EventNotifyCfg stores event-notify client configuration.
func (*EventNotifyCfg) BindViper ¶
func (cfg *EventNotifyCfg) BindViper(v *viper.Viper, prefix string)
BindViper setups posix flags for commandline configuration and bind to viper.
func (EventNotifyCfg) Empty ¶
func (cfg EventNotifyCfg) Empty() bool
Empty returns true if configuration is empty.
func (*EventNotifyCfg) FromViper ¶
func (cfg *EventNotifyCfg) FromViper(v *viper.Viper, prefix string)
FromViper fill values from viper.
func (*EventNotifyCfg) SetPFlags ¶
func (cfg *EventNotifyCfg) SetPFlags(short bool, prefix string)
SetPFlags setups posix flags for commandline configuration.
func (EventNotifyCfg) Validate ¶
func (cfg EventNotifyCfg) Validate() error
Validate checks that configuration is ok.
type HealthCfg ¶
HealthCfg stores http health server preferences.
func (*HealthCfg) BindViper ¶
BindViper setups posix flags for commandline configuration and bind to viper.
type LoggerCfg ¶
LoggerCfg stores logger configuration preferences.
func (*LoggerCfg) BindViper ¶
BindViper setups posix flags for commandline configuration and bind to viper.
type ServerCfg ¶
ServerCfg stores server preferences.
func (*ServerCfg) BindViper ¶
BindViper setups posix flags for commandline configuration and bind to viper.