config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 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 {
	User            string   `env:"LIBRATO_EMAIL"`
	Token           string   `env:"LIBRATO_TOKEN"`
	URL             string   `env:"HYSTRIX_URL"`
	Clusters        []string `env:"HYSTRIX_CLUSTERS"`
	ReportLatencies []string `env:"HYSTRIX_REPORT_LATENCIES" envDefault:"100th,99.5th,99th,95th,90th,75th,50th,25th,0th,mean"`
	ReportInterval  int      `env:"HYSTRIX_REPORT_INTERVAL" envDefault:"5"`
}

Config config struct

func Get

func Get() Config

Get the config

Jump to

Keyboard shortcuts

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