config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultQueue = GetEnvOrDefault("DEFAULT_QUEUE", "default")
View Source
var DefaultStartingState = GetEnvOrDefault("DEFAULT_STARTING_STATE", "submitted")
View Source
var FlushBytes = int64(GetEnvAsIntOrDefault("FLUSH_BYTES", "1000"))
View Source
var LogLevel = GetEnvOrDefault("LOGLEVEL", "error")
View Source
var PrometheusEnabled = GetEnvAsBoolOrDefault("PROMETHEUS_ENABLED", "false")
View Source
var RequestIdHeader = GetEnvOrDefault("REQUEST_ID_HEADER", "X-Request-ID")

Functions

func GetEnvAsBoolOrDefault

func GetEnvAsBoolOrDefault(env, defaultValue string) bool

func GetEnvAsIntOrDefault

func GetEnvAsIntOrDefault(env, defaultValue string) int

func GetEnvOrDefault

func GetEnvOrDefault(env, defaultValue 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