Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain []ConfigFilter
Chain 配置过滤链
func (Chain) Execute ¶
func (c Chain) Execute(configFile *configconnector.ConfigFile, next ConfigFileHandleFunc) (*configconnector.ConfigFileResponse, error)
Execute 执行链中的过滤器
type ConfigFileHandleFunc ¶
type ConfigFileHandleFunc func(configFile *configconnector.ConfigFile) (*configconnector.ConfigFileResponse, error)
ConfigFileHandleFunc 配置文件处理函数
type ConfigFilter ¶
type ConfigFilter interface { plugin.Plugin // DoFilter DoFilter(configFile *configconnector.ConfigFile, next ConfigFileHandleFunc) ConfigFileHandleFunc }
ConfigFilter 配置过滤器接口
type Proxy ¶
type Proxy struct { ConfigFilter // contains filtered or unexported fields }
Proxy is a config connector proxy
func (*Proxy) DoFilter ¶
func (p *Proxy) DoFilter(configFile *configconnector.ConfigFile, next ConfigFileHandleFunc) ConfigFileHandleFunc
DoFilter do filter
Click to show internal directories.
Click to hide internal directories.