config

package
v0.0.0-...-f375033 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: BSD-3-Clause Imports: 6 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DefaultInterval       = 60
	DefaultBufferSize     = 1000000
	DefaultWsPingInterval = 30
	DefaultDockerEndpoint = "unix:///var/run/docker.sock"
)

Variables

View Source
var Config struct {
	DockerEndpoint      string
	TsuruEndpoint       string
	TsuruToken          string
	MetricsInterval     time.Duration
	MetricsBackend      string
	MetricsEnable       bool
	MetricsEnableBasic  bool
	MetricsEnableConn   bool
	MetricsEnableHost   bool
	StatusInterval      time.Duration
	SyslogListenAddress string
	LogBackends         []string
}

Functions

func BoolEnvOrDefault

func BoolEnvOrDefault(defaultValue bool, envs ...string) bool

func IntEnvOrDefault

func IntEnvOrDefault(defaultValue int, envs ...string) int

func LoadConfig

func LoadConfig()

func SecondsEnvOrDefault

func SecondsEnvOrDefault(defaultValue float64, envs ...string) time.Duration

func StringEnvOrDefault

func StringEnvOrDefault(defaultValue string, envs ...string) string

func StringsEnvOrDefault

func StringsEnvOrDefault(defaultValue []string, envs ...string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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