Documentation
¶
Index ¶
- type EventDBCfg
- type EventForwardAPICfg
- func (cfg *EventForwardAPICfg) BindViper(v *viper.Viper, prefix string)
- func (cfg EventForwardAPICfg) Dump() string
- func (cfg EventForwardAPICfg) Empty() bool
- func (cfg *EventForwardAPICfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *EventForwardAPICfg) SetPFlags(short bool, prefix string)
- func (cfg EventForwardAPICfg) Validate() error
- type EventNotifyAPICfg
- func (cfg *EventNotifyAPICfg) BindViper(v *viper.Viper, prefix string)
- func (cfg EventNotifyAPICfg) Dump() string
- func (cfg EventNotifyAPICfg) Empty() bool
- func (cfg *EventNotifyAPICfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *EventNotifyAPICfg) SetPFlags(short bool, prefix string)
- func (cfg EventNotifyAPICfg) Validate() error
- type EventProcCfg
- func (cfg *EventProcCfg) BindViper(v *viper.Viper, prefix string)
- func (cfg EventProcCfg) Dump() string
- func (cfg EventProcCfg) Empty() bool
- func (cfg *EventProcCfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *EventProcCfg) SetPFlags(short bool, prefix string)
- func (cfg EventProcCfg) Validate() error
- type StackCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDBCfg ¶
EventDBCfg defines the configuration of the event database
type EventForwardAPICfg ¶
EventForwardAPICfg stores event service preferences
func (*EventForwardAPICfg) BindViper ¶
func (cfg *EventForwardAPICfg) BindViper(v *viper.Viper, prefix string)
BindViper setups posix flags for commandline configuration and bind to viper
func (EventForwardAPICfg) Empty ¶
func (cfg EventForwardAPICfg) Empty() bool
Empty returns true if configuration is empty
func (*EventForwardAPICfg) FromViper ¶
func (cfg *EventForwardAPICfg) FromViper(v *viper.Viper, prefix string)
FromViper fill values from viper
func (*EventForwardAPICfg) SetPFlags ¶
func (cfg *EventForwardAPICfg) SetPFlags(short bool, prefix string)
SetPFlags setups posix flags for commandline configuration
func (EventForwardAPICfg) Validate ¶
func (cfg EventForwardAPICfg) Validate() error
Validate checks that configuration is ok
type EventNotifyAPICfg ¶
EventNotifyAPICfg stores event service preferences
func (*EventNotifyAPICfg) BindViper ¶
func (cfg *EventNotifyAPICfg) BindViper(v *viper.Viper, prefix string)
BindViper setups posix flags for commandline configuration and bind to viper
func (EventNotifyAPICfg) Empty ¶
func (cfg EventNotifyAPICfg) Empty() bool
Empty returns true if configuration is empty
func (*EventNotifyAPICfg) FromViper ¶
func (cfg *EventNotifyAPICfg) FromViper(v *viper.Viper, prefix string)
FromViper fill values from viper
func (*EventNotifyAPICfg) SetPFlags ¶
func (cfg *EventNotifyAPICfg) SetPFlags(short bool, prefix string)
SetPFlags setups posix flags for commandline configuration
func (EventNotifyAPICfg) Validate ¶
func (cfg EventNotifyAPICfg) Validate() error
Validate checks that configuration is ok
type EventProcCfg ¶
type EventProcCfg struct {
Stack StackCfg
DB EventDBCfg
Workers int
CertsDir string
DataDir string
CacheDir string
}
EventProcCfg defines the configuration of a processor
func (*EventProcCfg) BindViper ¶
func (cfg *EventProcCfg) BindViper(v *viper.Viper, prefix string)
BindViper setups posix flags for commandline configuration and bind to viper
func (EventProcCfg) Empty ¶
func (cfg EventProcCfg) Empty() bool
Empty returns true if configuration is empty
func (*EventProcCfg) FromViper ¶
func (cfg *EventProcCfg) FromViper(v *viper.Viper, prefix string)
FromViper fill values from viper
func (*EventProcCfg) SetPFlags ¶
func (cfg *EventProcCfg) SetPFlags(short bool, prefix string)
SetPFlags setups posix flags for commandline configuration
func (EventProcCfg) Validate ¶
func (cfg EventProcCfg) Validate() error
Validate checks that configuration is ok