Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalConfigFromENV ¶
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
Click to show internal directories.
Click to hide internal directories.