Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindFlagsToViper ¶
Bind each cobra flag to its associated viper configuration (config file and environment variable) This approach cribbed from https://github.com/carolynvs/stingoftheviper/blob/19bd73117f0285436505ca17616cbc394d22e63d/main.go
Types ¶
type BundleConfig ¶
type BundleConfig struct {
BundlesFolder string `mapstructure:"bundles_folder"`
}
type ClientConfig ¶
type WorkerConfig ¶
type WorkerConfig struct {
ClientConfig ClientConfig `mapstructure:",squash"`
ApiJWTSecretKey string `mapstructure:"API_AUTH.SECRET_KEY"`
Issuer string `mapstructure:"API_AUTH.ISSUER"`
Queues []string `mapstructure:"QUEUES"`
Hostname string `mapstructure:"EDGE.HOSTNAME"`
ApiURL string `mapstructure:"EDGE.API_URL"`
}
Click to show internal directories.
Click to hide internal directories.