backend

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2015 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxIdle int = 2
	KeySep      = ':'
)
View Source
const (
	KeySeperator = "/"
)

Variables

This section is empty.

Functions

func NewRedisBackend added in v0.1.0

func NewRedisBackend(namespace, address string) *redisBackend

Types

type Backend

type Backend interface {
	GetVariable(group, variable string) ([]byte, error)
	SetVariable(group, variable string, value []byte) error
	RemoveVariable(group, variable string) error
	GetGroup(group string) (map[string][]byte, error)
	RemoveGroup(group string) error
}

func NewBackend

func NewBackend(kind, namespace, address string) (Backend, error)

type EtcdBackend added in v0.1.0

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

func NewEtcdBackend added in v0.1.0

func NewEtcdBackend(namespace string, machines []string) *EtcdBackend

func (*EtcdBackend) GetGroup added in v0.1.0

func (e *EtcdBackend) GetGroup(group string) (map[string][]byte, error)

func (*EtcdBackend) GetVariable added in v0.1.0

func (e *EtcdBackend) GetVariable(group, variable string) ([]byte, error)

func (*EtcdBackend) RemoveGroup added in v0.1.0

func (e *EtcdBackend) RemoveGroup(group string) error

func (*EtcdBackend) RemoveVariable added in v0.1.0

func (e *EtcdBackend) RemoveVariable(group, variable string) error

func (*EtcdBackend) SetVariable added in v0.1.0

func (e *EtcdBackend) SetVariable(group, variable string, value []byte) error

type NoBackendError

type NoBackendError struct {
	Kind string
}

func (NoBackendError) Error

func (e NoBackendError) Error() string

Jump to

Keyboard shortcuts

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