config

package
v1.8.95 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v1.8.68

type Manager struct {
	// contains filtered or unexported fields
}

Manager 管理配置文件的加载和监控

func NewConfigManager added in v1.8.68

func NewConfigManager(configStruct interface{}) *Manager

NewConfigManager 创建一个新的 ConfigManager 实例

func (*Manager) GetConfig added in v1.8.68

func (c *Manager) GetConfig() interface{}

GetConfig 返回当前配置

func (*Manager) LoadFile added in v1.8.68

func (c *Manager) LoadFile(filePath string, watch bool) error

LoadFile 加载配置文件到指定的结构体指针(结构体自由定义)

Jump to

Keyboard shortcuts

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