configuration

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 12 Imported by: 0

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) Destroy added in v1.5.0

func (c *ConfigFileFlow) Destroy()

Destroy 销毁服务

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 远程配置文件发布监听器

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL