Documentation
¶
Index ¶
- Constants
- func GetConfDirPath() string
- func GetConfigurationPath() string
- func GetPath(fileName string) string
- func GetPluginDirectory() string
- func LoadEnv(config interface{}) error
- func NormalizeEnvName(name string) string
- func ValidateConfig(config interface{}) error
- type EnvFlag
- type Manager
- type Validator
- type Watcher
Constants ¶
View Source
const EnvPrefix = "NETLEAP_"
EnvPrefix 环境变量前缀
Variables ¶
This section is empty.
Functions ¶
func GetConfDirPath ¶ added in v1.0.8
func GetConfDirPath() string
func GetConfigurationPath ¶ added in v1.0.8
func GetConfigurationPath() string
func GetPluginDirectory ¶ added in v1.0.8
func GetPluginDirectory() string
func NormalizeEnvName ¶ added in v1.0.8
func ValidateConfig ¶ added in v1.0.8
func ValidateConfig(config interface{}) error
ValidateConfig 验证配置
Types ¶
type EnvFlag ¶ added in v1.0.8
func NewEnvFlag ¶ added in v1.0.8
func (EnvFlag) GetValueAsInt ¶ added in v1.0.8
type Manager ¶ added in v1.0.8
type Manager[T any] struct { // contains filtered or unexported fields }
Manager 配置管理器
type Watcher ¶ added in v1.0.8
type Watcher struct {
// contains filtered or unexported fields
}
Watcher 文件监听器
func NewWatcher ¶ added in v1.0.8
NewWatcher 创建文件监听器
Click to show internal directories.
Click to hide internal directories.