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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址