Documentation
¶
Index ¶
Constants ¶
View Source
const ( DotenvConfigFormat nacosConfigType = "dotenv" YamlConfigFormat nacosConfigType = "yaml" )
Variables ¶
View Source
var ApolloClient agollo.Client
Functions ¶
func LoadFromApollo ¶
func LoadFromNacos ¶
func LoadFromNacos(param vo.NacosClientParam, dataId, format, group string) error
Types ¶
type BaseApolloListener ¶
func (*BaseApolloListener) OnNewestChange ¶
func (c *BaseApolloListener) OnNewestChange(event *storage.FullChangeEvent)
type NacosChangeEvent ¶
type NacosConfigListenerParam ¶
type NacosConfigListenerParam struct {
DataId string
OnChange func(event *NacosChangeEvent)
}
type NacosConfigMgr ¶
type NacosConfigMgr struct {
// contains filtered or unexported fields
}
var NacosClient *NacosConfigMgr
func (*NacosConfigMgr) AddChangeListener ¶
func (m *NacosConfigMgr) AddChangeListener(param NacosConfigListenerParam)
Click to show internal directories.
Click to hide internal directories.