Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Host string `yaml:"host"` DefaultLookback time.Duration `yaml:"default_lookback"` // InfluxDB v1.x Database string `yaml:"database"` RetentionPolicy string `yaml:"retention_policy"` Username string `yaml:"username"` Password string `yaml:"password"` UnsafeSsl bool `yaml:"unsafe_ssl"` // InfluxDB v2.x Token string `yaml:"token"` Organization string `yaml:"organization"` Bucket string `yaml:"bucket"` }
Configuration describes the options to customize the storage behavior
func (*Configuration) InitFromViper ¶
func (c *Configuration) InitFromViper(v *viper.Viper)
InitFromViper initializes the options struct with values from Viper
Click to show internal directories.
Click to hide internal directories.