config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 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 {
	Hostname string `config:"sonarr_hostname"`
	ApiKey   string `config:"sonarr_apikey"`

	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