config

package
v0.0.0-...-b4b96de Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalConfigFromENV

func GlobalConfigFromENV(logger *log.Logger) error

func SetServiceName

func SetServiceName(serviceName string)

Types

type HTTPConfig

type HTTPConfig struct {
	HeadersMap           map[string]string
	CookiesMap           map[string]string
	RequestIdHeaderName  string
	XSourceHeaderName    string
	XSourceValue         string
	RoutingEnabled       bool
	RoutingHeaderName    string
	RoutingCookieEnabled bool
	RoutingCookieName    string
	TracingIgnoredPaths  map[string]bool
}

func GetHTTPConfig

func GetHTTPConfig() HTTPConfig

type NetraConfig

type NetraConfig struct {
	Port                          uint16
	PprofPort                     uint16
	PrometheusPort                uint16
	ServiceName                   string
	TracingContextExpiration      time.Duration
	TracingContextCleanupInterval time.Duration
	RoutingContextExpiration      time.Duration
	RoutingContextCleanupInterval time.Duration
	LoggerLevel                   log.Level
	HTTPProtoPorts                map[string]struct{}
	StatsdEnabled                 bool
	StatsdAddress                 string
	StatsdPrefix                  string
}

func GetNetraConfig

func GetNetraConfig() NetraConfig

Jump to

Keyboard shortcuts

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