configuration

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigurationValue

func GetConfigurationValue(key string) string

GetConfigurationValue returns the value of the configuration key. If the configuration key is not found, it returns an empty string. First call will load the configuration from different sources. Supported sources are: Environment variables. The sources are loaded in the same order as listed above.

func GetConfigurationValueOrDefault

func GetConfigurationValueOrDefault(key string, defaultValue string) string

GetConfigurationValueOrDefault returns the value of the configuration key. If the configuration key is not found, it returns default value. First call will load the configuration from different sources. Supported sources are: Environment variables. The sources are loaded in the same order as listed above.

Types

This section is empty.

Jump to

Keyboard shortcuts

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