config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ETCDKeyPrefix

func ETCDKeyPrefix() string

func Load

func Load()

func LogLevel

func LogLevel() string

func NewETCDClient

func NewETCDClient() (etcd.Client, error)

func NewRelicConfig

func NewRelicConfig() newrelic.Config

func ProxyServerAddress

func ProxyServerAddress() string

func SentryDSN

func SentryDSN() string

func ServerReadTimeoutInMillis

func ServerReadTimeoutInMillis() time.Duration

func ServerWriteTimeoutInMillis

func ServerWriteTimeoutInMillis() time.Duration

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type ProxyConfig

type ProxyConfig struct {
	// contains filtered or unexported fields
}

func Proxy

func Proxy() ProxyConfig

func (ProxyConfig) KeepAliveEnabled

func (pc ProxyConfig) KeepAliveEnabled() bool

func (ProxyConfig) ProxyDialerKeepAliveInMS

func (pc ProxyConfig) ProxyDialerKeepAliveInMS() time.Duration

func (ProxyConfig) ProxyDialerTimeoutInMS

func (pc ProxyConfig) ProxyDialerTimeoutInMS() time.Duration

func (ProxyConfig) ProxyIdleConnTimeoutInMS

func (pc ProxyConfig) ProxyIdleConnTimeoutInMS() time.Duration

func (ProxyConfig) ProxyMaxIdleConns

func (pc ProxyConfig) ProxyMaxIdleConns() int

type StatsDConfig

type StatsDConfig struct {
	// contains filtered or unexported fields
}

func StatsD

func StatsD() StatsDConfig

func (StatsDConfig) Enabled

func (sdc StatsDConfig) Enabled() bool

func (StatsDConfig) FlushPeriodInSeconds

func (sdc StatsDConfig) FlushPeriodInSeconds() int

func (StatsDConfig) Host

func (sdc StatsDConfig) Host() string

func (StatsDConfig) Port

func (sdc StatsDConfig) Port() int

func (StatsDConfig) Prefix

func (sdc StatsDConfig) Prefix() string

Jump to

Keyboard shortcuts

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