config

package
v0.0.0-...-8fb4ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWatcherStopped = errors.New("watcher stopped")

Functions

func Init

func Init(client config.ConfigService, cacheSize int)

func ReadConfig

func ReadConfig(appName, clusterName, namespaceName string) (*config.Namespace, error)

Types

type Config

type Config struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Config) ReadConfig

func (c *Config) ReadConfig(appName, clusterName, namespaceName string) (*config.Namespace, error)

func (*Config) Watch

func (c *Config) Watch(appName, clusterName, namespaceName string) *Watcher

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func Watch

func Watch(appName, clusterName, namespaceName string) *Watcher

func (*Watcher) Next

func (w *Watcher) Next() (*config.Namespace, error)

func (*Watcher) Stop

func (w *Watcher) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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