config

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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"`
	Port           string        `config:"port"`
	Interval       time.Duration `config:"interval"`
}

Config is the exporter CLI configuration.

func Load

func Load() *Config

Load method loads the configuration by using both flag or environment variables.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL