Versions in this module Expand all Collapse all v3 v3.4.4 Mar 18, 2020 Changes in this version + const CompareAndDelete + const CompareAndDeleteFail + const CompareAndDeleteSuccess + const CompareAndSwap + const CompareAndSwapFail + const CompareAndSwapSuccess + const CompareIndexNotMatch + const CompareMatch + const CompareNotMatch + const CompareValueNotMatch + const Create + const CreateFail + const CreateSuccess + const Delete + const DeleteFail + const DeleteSuccess + const Expire + const ExpireCount + const Get + const GetFail + const GetRecursive + const GetSuccess + const Set + const SetFail + const SetSuccess + const Update + const UpdateFail + const UpdateSuccess + var Permanent time.Time + type Event struct + Action string + EtcdIndex uint64 + Node *NodeExtern + PrevNode *NodeExtern + Refresh bool + func (e *Event) Clone() *Event + func (e *Event) Index() uint64 + func (e *Event) IsCreated() bool + func (e *Event) SetRefresh() + type EventHistory struct + LastIndex uint64 + Queue eventQueue + StartIndex uint64 + type NodeExtern struct + CreatedIndex uint64 + Dir bool + Expiration *time.Time + Key string + ModifiedIndex uint64 + Nodes NodeExterns + TTL int64 + Value *string + func (eNode *NodeExtern) Clone() *NodeExtern + type NodeExterns []*NodeExtern + func (ns NodeExterns) Len() int + func (ns NodeExterns) Less(i, j int) bool + func (ns NodeExterns) Swap(i, j int) + type Stats struct + CompareAndDeleteFail uint64 + CompareAndDeleteSuccess uint64 + CompareAndSwapFail uint64 + CompareAndSwapSuccess uint64 + CreateFail uint64 + CreateSuccess uint64 + DeleteFail uint64 + DeleteSuccess uint64 + ExpireCount uint64 + GetFail uint64 + GetSuccess uint64 + SetFail uint64 + SetSuccess uint64 + UpdateFail uint64 + UpdateSuccess uint64 + Watchers uint64 + func (s *Stats) Inc(field int) + type Store interface + Clone func() Store + CompareAndDelete func(nodePath string, prevValue string, prevIndex uint64) (*Event, error) + CompareAndSwap func(nodePath string, prevValue string, prevIndex uint64, value string, ...) (*Event, error) + Create func(nodePath string, dir bool, value string, unique bool, expireOpts TTLOptionSet) (*Event, error) + Delete func(nodePath string, dir, recursive bool) (*Event, error) + DeleteExpiredKeys func(cutoff time.Time) + Get func(nodePath string, recursive, sorted bool) (*Event, error) + HasTTLKeys func() bool + Index func() uint64 + JsonStats func() []byte + Recovery func(state []byte) error + Save func() ([]byte, error) + SaveNoCopy func() ([]byte, error) + Set func(nodePath string, dir bool, value string, expireOpts TTLOptionSet) (*Event, error) + Update func(nodePath string, newValue string, expireOpts TTLOptionSet) (*Event, error) + Version func() int + Watch func(prefix string, recursive, stream bool, sinceIndex uint64) (Watcher, error) + func New(namespaces ...string) Store + type TTLOptionSet struct + ExpireTime time.Time + Refresh bool + type Watcher interface + EventChan func() chan *Event + Remove func() + StartIndex func() uint64 + func NewNopWatcher() Watcher