package
0.35.1
Repository: https://github.com/rudderlabs/rudder-go-kit.git
Documentation: pkg.go.dev

# Functions

ConfigKeyToEnv gets the env variable name from a given config key.
GetBool gets bool value from config.
GetBoolVar registers a not hot-reloadable bool config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetDuration gets duration value from config.
GetDurationVar registers a not hot-reloadable duration config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetFloat64 gets float64 value from config.
GetFloat64Var registers a not hot-reloadable float64 config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetInt gets int value from config.
GetInt64 gets int64 value from config.
GetInt64Var registers a not hot-reloadable int64 config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetIntVar registers a not hot-reloadable int config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetKubeNamespace returns value stored in KUBE_NAMESPACE env var.
GetNamespaceIdentifier returns value stored in KUBE_NAMESPACE env var or "none" if empty.
No description provided by the author
GetReloadableBoolVar registers a hot-reloadable bool config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableDurationVar registers a not hot-reloadable duration config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableFloat64Var registers a hot-reloadable float64 config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableInt64Var registers a hot-reloadable int64 config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableIntVar registers a hot-reloadable int config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableStringMapVar registers a hot-reloadable string map config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableStringSliceVar registers a hot-reloadable string slice config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetReloadableStringVar registers a hot-reloadable string config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetString gets string value from config.
GetStringMap gets string map value from config.
GetStringMapVar registers a not hot-reloadable string map config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetStringSlice gets string slice value from config.
GetStringSliceVar registers a not hot-reloadable string slice config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetStringVar registers a not hot-reloadable string config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
GetWorkspaceToken returns the workspace token provided in the environment variables Env variable CONFIG_BACKEND_TOKEN is deprecating soon WORKSPACE_TOKEN is newly introduced.
IsSet checks if config is set for a key.
MustGetInt gets int value from config or panics if the config doesn't exist.
MustGetString gets string value from config or panics if the config doesn't exist.
New creates a new config instance.
RegisterBoolConfigVariable registers bool config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterDurationConfigVariable registers duration config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterFloat64ConfigVariable registers float64 config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterInt64ConfigVariable registers int64 config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterIntConfigVariable registers int config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterStringConfigVariable registers string config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterStringMapConfigVariable registers string map config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
RegisterStringSliceConfigVariable registers string slice config variable WARNING: keys are being looked up in requested order and the value of the first found key is returned, e.g.
Reset resets the default, singleton config instance.
Set override existing config.
SingleValueLoader returns a ValueLoader that always returns the same value.
WithEnvPrefix sets the environment variable prefix (default: RSERVER).

# Constants

No description provided by the author
Rudder server supported config constants.
Rudder server supported config constants.
Rudder server supported config constants.
Rudder server supported config constants.
Rudder server supported config constants.
Rudder server supported config constants.

# Variables

Default is the singleton config instance.

# Structs

Config is the entry point for accessing configuration.
Reloadable is used as a wrapper for hot-reloadable config variables.

# Interfaces

ValueLoader is an interface that can be used to load a value.

# Type aliases

No description provided by the author