configuration

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnvConfig

func LoadEnvConfig(cfg interface{}, filenames ...string) error

func LoadYamlConfig

func LoadYamlConfig[T IConfig](path string, config T) error

LoadYamlConfig read configuration and transfer to Config model.

func ValidateLoggerLevel

func ValidateLoggerLevel(level string) bool

Types

type IConfig

type IConfig interface {
	Validate() error
	Name() string
	ToString() string
}

Jump to

Keyboard shortcuts

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