Documentation ¶
Index ¶
- Constants
- func NewRedisBackend(namespace, address string) *redisBackend
- type Backend
- type EtcdBackend
- func (e *EtcdBackend) GetGroup(group string) (map[string][]byte, error)
- func (e *EtcdBackend) GetVariable(group, variable string) ([]byte, error)
- func (e *EtcdBackend) RemoveGroup(group string) error
- func (e *EtcdBackend) RemoveVariable(group, variable string) error
- func (e *EtcdBackend) SetVariable(group, variable string, value []byte) error
- type NoBackendError
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 ¶
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
Click to show internal directories.
Click to hide internal directories.