Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ListenAddress string `mapstructure:"listen-address"` TelemetryPath string `mapstructure:"telemetry-path"` ScrapeURI string `mapstructure:"scrape-uri"` SkipVerify bool `mapstructure:"skip-verify"` Timeout int `mapstructure:"timeout"` WallixUsername string `mapstructure:"wallix-username"` WallixPassword string `mapstructure:"wallix-password"` }
All configuration available for the user.
func LoadConfig ¶
Entry point function to load the configuration with the following precedence order: - flag - env var - config file The config file is optional.
Click to show internal directories.
Click to hide internal directories.