Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
Types ¶
type CurrentConfigGetter ¶
type CurrentConfigGetter interface { // GetCurrConfig returns the current channel config for the given channel GetCurrConfig(channel string) *common.Config }
CurrentConfigGetter enables to fetch the last channel config
type CurrentConfigGetterFunc ¶
CurrentConfigGetterFunc enables to fetch the last channel config
func (CurrentConfigGetterFunc) GetCurrConfig ¶
func (f CurrentConfigGetterFunc) GetCurrConfig(channel string) *common.Config
CurrentConfigGetterFunc enables to fetch the last channel config
type DiscoverySupport ¶
type DiscoverySupport struct {
CurrentConfigGetter
}
DiscoverySupport implements support that is used for service discovery that is related to configuration
func NewDiscoverySupport ¶
func NewDiscoverySupport(getLastConfig CurrentConfigGetter) *DiscoverySupport
NewDiscoverySupport creates a new DiscoverySupport
func (*DiscoverySupport) Config ¶
func (s *DiscoverySupport) Config(channel string) (*discovery.ConfigResult, error)
Config returns the channel's configuration
Click to show internal directories.
Click to hide internal directories.