scc

package module
v0.0.0-...-42acba6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

README

scc

configuration management

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnspecifiedCodec   = errors.New("unspecified codec")
	ErrUnspecifiedAppName = errors.New("unspecified app name")
	ErrStopWatchFailed    = errors.New("stop watch failed")
)

Functions

This section is empty.

Types

type Codec

type Codec codec.Codec

type Store

type Store interface {
	Get(key string, value interface{}) error
	Set(key string, value interface{}) error
	Watch(key string, cb func(data []byte)) error
	StopWatch(key string) error
	SetOption(options *store.Config) error
	SetCodec(codec Codec)
	GetCodec() Codec
}

func NewConsulStore

func NewConsulStore(appName string, consulServers []string) (Store, error)

func NewEtcdStore

func NewEtcdStore(appName string, etcdServers []string) (Store, error)

func NewZookeeperStore

func NewZookeeperStore(appName string, zookeeperServers []string) (Store, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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