config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 1 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 {
	TraefikUrl      string `long:"traefik-url" env:"TRAEFIK_URL"`
	TraefikUsername string `long:"traefik-username" env:"TRAEFIK_USERNAME"`
	TraefikPassword string `long:"traefik-password" env:"TRAEFIK_PASSWORD"`

	LogLevel string `long:"log-level" env:"LOG_LEVEL" default:"Info"`

	RunInterval int `long:"interval" env:"INTERVAL" default:"600"`

	OutputDir string `short:"o" env:"OUTPUT_DIR" default:"/prometheus-traefik-sd/"`

	GracePeriod int `long:"grace-period" env:"GRACE_PERIOD" default:"6"`
}

func New

func New() (Config, error)

Jump to

Keyboard shortcuts

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