Versions in this module Expand all Collapse all v0 v0.0.2 Oct 28, 2026 v0.0.1 May 27, 2026 Changes in this version + var ErrConfigNotFound = errors.New("config not found") + var ErrInvalidRemoteType = errors.New("invalid remote type, expected apollo or consul") + var ErrKeyNotFound = errors.New("config key not found") + var ErrLocalUnavailable = errors.New("local config unavailable") + var ErrRemoteUnavailable = errors.New("remote config center unavailable") + type ConfigCenter struct + func NewConfigCenter(remoteType string, localConfigPath string, remoteAddr string) (*ConfigCenter, error) + func NewConfigCenterWithTimeout(remoteType string, localConfigPath string, remoteAddr string, ...) (*ConfigCenter, error) + func NewConfigCenterWithTimeoutWithParams(remoteType string, localConfigPath string, remoteAddr string, ...) (*ConfigCenter, error) + func (c *ConfigCenter) Close() error + func (c *ConfigCenter) Get(key string) (interface{}, error) + func (c *ConfigCenter) Watch(key string, fn func(interface{}))