config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigManager = xerrors.New("error inside config manager", "E0310")
	ErrConfigInit    = ErrConfigManager.WithMessage("config init error", "E0311")
	ErrConfigGet     = ErrConfigManager.WithMessage("config get error", "E0312")
	ErrValueNotFound = ErrConfigGet.WithMessage("config value not found", "E0313")
)

Functions

func Get

func Get[T any](configKey string, processor componego.Processor, env componego.Environment) (T, error)

func GetOrPanic

func GetOrPanic[T any](configKey string, processor componego.Processor, env componego.Environment) T

func NewManager

func NewManager() (componego.ConfigProvider, func(componego.Environment, map[string]any) error)

func ParseConfig

func ParseConfig(env componego.Environment, options any) (map[string]any, error)

func ProcessVariables

func ProcessVariables(settings map[string]any) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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