Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfigEnvelope ¶
func ValidateConfigEnvelope(ce *common.ConfigEnvelope) error
Types ¶
type CurrentConfigBlockGetter ¶
type CurrentConfigBlockGetter interface { //getcurrconfigblock返回给定通道的当前配置块 GetCurrConfigBlock(channel string) *common.Block }
CurrentConfigBlockGetter允许获取最后一个配置块
type CurrentConfigBlockGetterFunc ¶
CurrentConfigBlockGetterFunc enables to fetch the last config block
func (CurrentConfigBlockGetterFunc) GetCurrConfigBlock ¶
func (f CurrentConfigBlockGetterFunc) GetCurrConfigBlock(channel string) *common.Block
CurrentConfigBlockGetterfUnc允许获取最后一个配置块
type DiscoverySupport ¶
type DiscoverySupport struct {
CurrentConfigBlockGetter
}
DiscoverySupport实现用于服务发现的支持 与配置有关
func NewDiscoverySupport ¶
func NewDiscoverySupport(getLastConfigBlock CurrentConfigBlockGetter) *DiscoverySupport
新建DiscoverySupport创建新的DiscoverySupport
func (*DiscoverySupport) Config ¶
func (s *DiscoverySupport) Config(channel string) (*discovery.ConfigResult, error)
config返回通道的配置
Click to show internal directories.
Click to hide internal directories.