Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentConfig ¶
type AgentConfig struct { Watchers `mapstructure:"watchers"` Server ServerConfig `mapstructure:"server"` Retry map[string]string `mapstructure:"retry"` }
type Config ¶
type Config interface { Init(opts ...Option) error Get(key string) interface{} Set(key string, value interface{}) Scan(key string, value interface{}) error Load() error String() string }
func NewViperConfig ¶
type ConfigOption ¶
type ServerConfig ¶
type ServerConfig struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` Store string `mapstructure:"store"` Bucket string `mapstructure:"bucket"` Endpoint string `mapstructure:"endpoint"` AwsAccessKey string `mapstructure:"aws_access_key"` AwsSecretKey string `mapstructure:"aws_secret_key"` PathAddressingMode string `mapstructure:"path_addressing_mode"` }
Click to show internal directories.
Click to hide internal directories.