config

package
v0.0.0-...-dcf6e8f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSingleton = ParseConfig()

ConfigSingleton - Parsed config for this service.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigPath          string
	HTTPAddr            string   `env:"HTTPAddr" default:"\":9167\""`
	DevEnv              bool     `env:"DEV_ENV" default:"false"`
	LogLevel            string   `env:"LOG_LEVEL" default:"info"`
	LogToFile           string   `env:"LOG_TO_FILE"`
	LogFormat           string   `env:"LOG_FORMAT" default:"\"json\""`
	FetchInterval       int64    `env:"FETCH_INTERVAL" default:"2000"`
	FetchTimeout        int64    `env:"FETCH_TIMEOUT" default:"10000"`
	ContainerLabelsList []string `env:"CONTAINER_LABELS_LIST"`
	EnableSelfMetrics   bool     `env:"ENABLE_SELF_METRICS" default:"false"`
}

Config - config struct for this service.

func ParseConfig

func ParseConfig() Config

ParseConfig - Parse and return config for service.

Jump to

Keyboard shortcuts

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