Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(obj db.Entity) error
- func (c *Client) Dump(dir string) (string, error)
- func (c *Client) Get(obj db.Entity) error
- func (c *Client) List(obj db.Entity) ([]db.Entity, error)
- func (c *Client) Prefix() string
- func (c *Client) Set(obj db.Entity) error
- func (c *Client) Watch(obj db.Entity) (chan db.Entity, chan error)
- func (c *Client) WatchAll(obj db.Entity) (chan db.Entity, chan error)
- func (c *Client) WatchAllStop(obj db.Entity) error
- func (c *Client) WatchStop(obj db.Entity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the db.Client interface.
func (*Client) Dump ¶
Dump yields a database dump of the keyspace we manage. It will be contained in a tarball based on the timestamp of the dump. If a dir is provided, it will be placed under that directory.
func (*Client) Get ¶
Get retrieves the item from etcd's key/value store and then populates obj with its data.
func (*Client) List ¶
List populates obj with the list of the db in the collection corresponding to the entity. Will follow dirs until the ends of the earth trying to deserialize the entity.
Click to show internal directories.
Click to hide internal directories.