Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
A Key-Value dictionary backed by an distributed log
func NewDict ¶
Constructs and returns a new dictionary. The returned dict will be populated with the latest snapshot of the log and automatically update the local copy of the data as it changes remotely.
func (*Dict) Close ¶
func (d *Dict) Close()
Close the dictionary. It will no longer respond to log updates
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
Implements LogClient
func (*EtcdClient) Get ¶
func (e *EtcdClient) Get(path string) (*LogNode, error)
LogClient Implementation
func (*EtcdClient) PutDir ¶
func (e *EtcdClient) PutDir(path string) error
type LogClient ¶
type LogClient interface { Get(path string) (*LogNode, error) Put(path string, value string) error PutDir(path string) error Watch(path string, watcher chan *LogNode, closer chan bool) }
Generic client interface used as a wrapper for the underyling log client. See etcd_client.go for example implementatino
Click to show internal directories.
Click to hide internal directories.