config

package
v0.0.0-...-24cf382 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(category string, name string) (interface{}, error)

Get - get value of the key in specific category

func GetAllInitializedModuleList

func GetAllInitializedModuleList() []string

GetAllInitializedModuleList - get list of names that initialized truly

func GetHostName

func GetHostName() string

GetHostName - returns hostname based on config

func GetName

func GetName() string

GetName - returns service instance name based on config

func GetOperationType

func GetOperationType() string

GetOperationType - returns operation type which could be `dev`, `prod`

func InitializeManager

func InitializeManager(configBasePath string, configInitialMode string, configEnvPrefix string) error

InitializeManager - Create a new config manager instance and wait to initialize it

func IsInitialized

func IsInitialized() bool

IsInitialized - iterate over all config wrappers and see all initialised correctly

func ManualLoadConfig

func ManualLoadConfig(configBasePath string, configName string) error

ManualLoadConfig - load manual config from the path and add to the current dict

func Set

func Set(category string, name string, value interface{}) error

Set - set value in category by specified key

Types

This section is empty.

Jump to

Keyboard shortcuts

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