Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { PIHoleProtocol string `config:"pihole_protocol"` PIHoleHostname string `config:"pihole_hostname"` PIHolePort uint16 `config:"pihole_port"` PIHolePassword string `config:"pihole_password"` PIHoleApiToken string `config:"pihole_api_token"` }
Config is the exporter CLI configuration.
func (Config) PIHoleLoginURL ¶ added in v0.1.0
PIHoleLoginURL returns the login url
func (Config) PIHoleStatsURL ¶ added in v0.1.0
PIHoleStatsURL returns the stats url
type EnvConfig ¶ added in v0.1.0
type EnvConfig struct { PIHoleProtocol []string `config:"pihole_protocol"` PIHoleHostname []string `config:"pihole_hostname"` PIHolePort []uint16 `config:"pihole_port"` PIHolePassword []string `config:"pihole_password"` PIHoleApiToken []string `config:"pihole_api_token"` Port uint16 `config:"port"` Timeout time.Duration `config:"timeout"` }
Click to show internal directories.
Click to hide internal directories.