confmanager

package
v1.2.27 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfig added in v1.2.18

type IConfig interface {
	// To retreive *env* specific config
	// `prod/redis` or `stage1/redis`
	Get(string) ([]byte, error)

	// To retreive Global config
	// `dynamoDB`
	GetGlobal(string) ([]byte, error)
}

func GetFileConfigManager

func GetFileConfigManager() (IConfig, error)

func GetSecretManager

func GetSecretManager(env string) IConfig

GetSecretManager ..

type IConfigExt added in v1.2.18

type IConfigExt interface {
	IConfig
	//This panics if no such config found
	MustGet(string) []byte

	//This panics if no such global config found
	MustGetGlobal(string) []byte
}

Jump to

Keyboard shortcuts

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