Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
GetConfig(key string, result any) bool // 从缓存获取配置(强类型)
GetAllKeys(prefix string) []string // 获取指定前缀的所有键
PutConfig(ctx context.Context, key string, config any) error // 写入配置(自动序列化)
DeleteConfig(ctx context.Context, key string) error // 删除配置
AddPrefixWatcher(prefix string, callback core.PrefixWatchCallback) // 添加前缀监听器
}
Manager 配置存储管理器接口
func NewManager ¶
NewManager 创建配置存储管理器
Click to show internal directories.
Click to hide internal directories.