Documentation ¶
Index ¶
- Variables
- func ConfigCallSection(name string, cfg *viper.Viper) error
- func ConfigGetSections() []string
- func ConfigRegister(name string, parse func(*viper.Viper) error, validate func() ([]error, error)) error
- func ConfigValidateSection(name string) (warnings []error, err error)
- func RandString(n int) string
- func StartLogger()
- type GlobalStateT
- type NatsConfigT
- type WorkerConfigT
Constants ¶
This section is empty.
Variables ¶
View Source
var Log logadapter.Logger
Functions ¶
func ConfigGetSections ¶
func ConfigGetSections() []string
func ConfigRegister ¶
func ConfigValidateSection ¶
func RandString ¶
func StartLogger ¶
func StartLogger()
Types ¶
type GlobalStateT ¶
type GlobalStateT struct { WorkerConfig WorkerConfigT NatsConfig NatsConfigT Conn *rns.ResticNatsClient ClientCommand chan *nats.Msg ClientCommandSubscription *nats.Subscription Mx sync.Mutex T tomb.Tomb }
var GlobalState GlobalStateT
type NatsConfigT ¶
type WorkerConfigT ¶
Click to show internal directories.
Click to hide internal directories.