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 {
    PIHoleHostname string `config:"pihole_hostname"`
    PIHolePassword string `config:"pihole_password"`

    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 2019-08-30. Refresh now. Tools for package owners.