Documentation
¶
Index ¶
- type Etcd2
- func (e Etcd2) Find(queryStr string, callback datastore.ResultCallback)
- func (e Etcd2) FindAndUpdate(queryStr string, update interface{}, callback datastore.ResultCallback)
- func (e Etcd2) Remove(queryStr string, callback datastore.NoResultCallback)
- func (e Etcd2) Save(key string, data interface{}, callback datastore.NoResultCallback)
- func (e Etcd2) Update(queryStr string, update interface{}, callback datastore.NoResultCallback)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd2 ¶
Etcd2 is a struct for the Etcd v2 driver
func (Etcd2) Find ¶
func (e Etcd2) Find(queryStr string, callback datastore.ResultCallback)
Find finds data in etcd
func (Etcd2) FindAndUpdate ¶
func (e Etcd2) FindAndUpdate(queryStr string, update interface{}, callback datastore.ResultCallback)
FindAndUpdate updates data, then returns it
func (Etcd2) Remove ¶
func (e Etcd2) Remove(queryStr string, callback datastore.NoResultCallback)
Remove removes data in etcd
Click to show internal directories.
Click to hide internal directories.