Documentation ¶
Index ¶
- Constants
- func GetArraySupportForCH() bool
- func GetBool(key string, defaultValue bool) (value bool)
- func GetDuration(key string, defaultValueInTimescaleUnits int64, timeScale time.Duration) (value time.Duration)
- func GetEnv(key, defaultVal string) string
- func GetEnvAsBool(name string, defaultVal bool) bool
- func GetEnvAsInt(key string, defaultVal int) int
- func GetEnvErr(key string) (string, error)
- func GetFloat64(key string, defaultValue float64) (value float64)
- func GetInstanceID() string
- func GetInt(key string, defaultValue int) (value int)
- func GetInt64(key string, defaultValue int64) (value int64)
- func GetKubeNamespace() string
- func GetNamespaceIdentifier() string
- func GetReleaseName() string
- func GetRequiredEnv(key string) string
- func GetRequiredEnvAsInt(key string) int
- func GetString(key, defaultValue string) (value string)
- func GetStringSlice(key string, defaultValue []string) (value []string)
- func GetVarCharMaxForRS() bool
- func GetWHSchemaVersion() string
- func GetWorkspaceToken() string
- func IsEnvSet(key string) bool
- func IsSet(key string) bool
- func IsTransformedEnvSet(key string) bool
- func Load()
- func MustGetEnv(key string) string
- func RegisterBoolConfigVariable(defaultValue bool, ptr *bool, isHotReloadable bool, keys ...string)
- func RegisterDurationConfigVariable(defaultValueInTimescaleUnits int64, ptr *time.Duration, isHotReloadable bool, ...)
- func RegisterFloat64ConfigVariable(defaultValue float64, ptr *float64, isHotReloadable bool, keys ...string)
- func RegisterInt64ConfigVariable(defaultValue int64, ptr *int64, isHotReloadable bool, valueScale int64, ...)
- func RegisterIntConfigVariable(defaultValue int, ptr *int, isHotReloadable bool, valueScale int, ...)
- func RegisterStringConfigVariable(defaultValue string, ptr *string, isHotReloadable bool, keys ...string)
- func RegisterStringSliceConfigVariable(defaultValue []string, ptr *[]string, isHotReloadable bool, keys ...string)
- func SetBool(key string, value bool)
- func SetHotReloadablesForcefully(key string, value interface{})
- func SetString(key, value string)
- func SetWHSchemaVersion(version string)
- func TransformKey(s string) string
- func UpdateConfig()
- type ConfigVar
Constants ¶
const ( EmbeddedMode = "embedded" MasterMode = "master" MasterSlaveMode = "master_and_slave" SlaveMode = "slave" OffMode = "off" PooledWHSlaveMode = "embedded_master" )
Rudder server supported config constants
Variables ¶
This section is empty.
Functions ¶
func GetArraySupportForCH ¶
func GetArraySupportForCH() bool
func GetDuration ¶
func GetDuration(key string, defaultValueInTimescaleUnits int64, timeScale time.Duration) (value time.Duration)
GetDuration is wrapper for viper's GetDuration
func GetEnvAsBool ¶
GetEnvAsBool returns the boolean environment value stored in key variable
func GetEnvAsInt ¶
GetEnvAsInt returns the int value of environment value stored in the key variable If not set, default value will be return. If set but unparsable, returns 0
func GetFloat64 ¶
GetFloat64 is wrapper for viper's GetFloat64
func GetInstanceID ¶
func GetInstanceID() string
func GetKubeNamespace ¶
func GetKubeNamespace() string
GetKubeNamespace returns value stored in KUBE_NAMESPACE env var
func GetNamespaceIdentifier ¶
func GetNamespaceIdentifier() string
func GetReleaseName ¶
func GetReleaseName() string
func GetRequiredEnv ¶
GetRequiredEnv returns the environment value stored in key variable, no default
func GetRequiredEnvAsInt ¶
GetRequiredEnvAsInt returns the environment value stored in key variable as int, no default
func GetStringSlice ¶
GetStringSlice is wrapper for viper's GetStringSlice
func GetVarCharMaxForRS ¶
func GetVarCharMaxForRS() bool
func GetWHSchemaVersion ¶
func GetWHSchemaVersion() string
func GetWorkspaceToken ¶
func GetWorkspaceToken() string
GetWorkspaceToken returns the workspace token provided in the environment variables Env variable CONFIG_BACKEND_TOKEN is deprecating soon WORKSPACE_TOKEN is newly introduced. This will override CONFIG_BACKEND_TOKEN
func IsTransformedEnvSet ¶
func MustGetEnv ¶
func SetHotReloadablesForcefully ¶
func SetHotReloadablesForcefully(key string, value interface{})
func SetWHSchemaVersion ¶
func SetWHSchemaVersion(version string)
func TransformKey ¶
TransformKey as package method to get the formatted env from a give string
func UpdateConfig ¶
func UpdateConfig()
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package backendconfig is a generated GoMock package.
|
Package backendconfig is a generated GoMock package. |