config

package
v0.0.0-...-3226e9d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 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.ConfigResponse, 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.ConfigResponse, 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.ConfigResponse, 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