pihole-exporter: github.com/eko/pihole-exporter/config Index | Files

package config

import "github.com/eko/pihole-exporter/config"

Index

Package Files

configuration.go

type Config Uses

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 Uses

func Load() *Config

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

Package config imports 9 packages (graph) and is imported by 1 packages. Updated 2020-08-12. Refresh now. Tools for package owners.