Documentation ¶
Index ¶
Constants ¶
View Source
const (
NotExistedFileContent = string("@@not_existed@@")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFileFlow ¶ added in v1.5.0
type ConfigFileFlow struct {
// contains filtered or unexported fields
}
ConfigFileFlow 配置中心核心服务门面类
func NewConfigFileFlow ¶ added in v1.5.0
func NewConfigFileFlow(connector configconnector.ConfigConnector, chain configfilter.Chain, configuration config.Configuration) *ConfigFileFlow
NewConfigFileFlow 创建配置中心服务
func (*ConfigFileFlow) GetConfigFile ¶ added in v1.5.0
func (c *ConfigFileFlow) GetConfigFile(namespace, fileGroup, fileName string) (model.ConfigFile, error)
GetConfigFile 获取配置文件
type ConfigFileRepo ¶ added in v1.5.0
type ConfigFileRepo struct {
// contains filtered or unexported fields
}
ConfigFileRepo 服务端配置文件代理类,从服务端拉取配置并同步数据
func (*ConfigFileRepo) AddChangeListener ¶ added in v1.5.0
func (r *ConfigFileRepo) AddChangeListener(listener ConfigFileRepoChangeListener)
AddChangeListener 添加配置文件变更监听器
func (*ConfigFileRepo) GetContent ¶ added in v1.5.0
func (r *ConfigFileRepo) GetContent() string
GetContent 获取配置文件内容
func (*ConfigFileRepo) GetNotifiedVersion ¶ added in v1.5.0
func (r *ConfigFileRepo) GetNotifiedVersion() uint64
type ConfigFileRepoChangeListener ¶ added in v1.5.0
type ConfigFileRepoChangeListener func(configFileMetadata model.ConfigFileMetadata, newContent string) error
ConfigFileRepoChangeListener 远程配置文件发布监听器
Click to show internal directories.
Click to hide internal directories.