config

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(c *common.Config) error

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

type CurrentConfigGetterFunc func(channel string) *common.Config

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

Jump to

Keyboard shortcuts

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