Documentation ¶
Index ¶
- type EtcdDatastore
- func (d *EtcdDatastore) AddPrefix(prefix string) datastore.Datastore
- func (d EtcdDatastore) Apply(key string, pb proto.Message) error
- func (d EtcdDatastore) Close() error
- func (d EtcdDatastore) Delete(key string) error
- func (d EtcdDatastore) Get(key string, pb proto.Message) error
- func (m *EtcdDatastore) IsLocked(key string) bool
- func (d EtcdDatastore) List(f func(int) []proto.Message) error
- func (m *EtcdDatastore) Lock(key string) bool
- func (m *EtcdDatastore) Unlock(key string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdDatastore ¶
type EtcdDatastore struct {
// contains filtered or unexported fields
}
func NewEtcdDatastore ¶
func NewEtcdDatastore(endpoints []string) (*EtcdDatastore, error)
func (*EtcdDatastore) AddPrefix ¶
func (d *EtcdDatastore) AddPrefix(prefix string) datastore.Datastore
func (EtcdDatastore) Close ¶
func (d EtcdDatastore) Close() error
func (EtcdDatastore) Delete ¶
func (d EtcdDatastore) Delete(key string) error
func (*EtcdDatastore) IsLocked ¶
func (m *EtcdDatastore) IsLocked(key string) bool
func (*EtcdDatastore) Lock ¶
func (m *EtcdDatastore) Lock(key string) bool
func (*EtcdDatastore) Unlock ¶
func (m *EtcdDatastore) Unlock(key string) bool
Click to show internal directories.
Click to hide internal directories.