Versions in this module Expand all Collapse all v0 v0.3.1 Jan 9, 2023 Changes in this version + var ErrContentIsEmpty = errors.New("config content is empty") v0.3.0 Nov 4, 2022 Changes in this version + var ErrAddrIsEmpty = errors.New("config center addr is empty") + var ErrContextIsEmpty = errors.New("config context is empty") + type ConsulConfig struct + Addr string + Client *api.Client + Namespace string + ServiceId string + func (c *ConsulConfig) LoadConsulConfig(conf interface{}) (err error) + type FileConfig struct + Path string + func (c *FileConfig) LoadFileConfig(conf interface{}) (err error) + type NacosConfig struct + Addr string + Client config_client.IConfigClient + DataId string + Group string + Namespace string + func (c *NacosConfig) CancelListenConfig() (err error) + func (c *NacosConfig) ListenConfig(conf interface{}) + func (c *NacosConfig) LoadNacosConfig(conf interface{}) (err error)