config

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

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

type CurrentConfigBlockGetterFunc func(channel string) *common.Block

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返回通道的配置

Jump to

Keyboard shortcuts

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