Versions in this module Expand all Collapse all v0 v0.2.1 Jul 20, 2016 v0.2.0 Apr 15, 2016 Changes in this version + const MaxSessionDestroyAttempts v0.1.0 Nov 5, 2015 Changes in this version + const DefaultWatchWaitTime + const RenewSessionRetryMax + var ErrMultipleEndpointsUnsupported = errors.New("consul does not support multiple endpoints") + var ErrSessionRenew = errors.New("cannot set or renew session for ttl, unable to operate on sessions") + func New(endpoints []string, options *store.Config) (store.Store, error) + func Register() + type Consul struct + func (s *Consul) AtomicDelete(key string, previous *store.KVPair) (bool, error) + func (s *Consul) AtomicPut(key string, value []byte, previous *store.KVPair, options *store.WriteOptions) (bool, *store.KVPair, error) + func (s *Consul) Close() + func (s *Consul) Delete(key string) error + func (s *Consul) DeleteTree(directory string) error + func (s *Consul) Exists(key string) (bool, error) + func (s *Consul) Get(key string) (*store.KVPair, error) + func (s *Consul) List(directory string) ([]*store.KVPair, error) + func (s *Consul) NewLock(key string, options *store.LockOptions) (store.Locker, error) + func (s *Consul) Put(key string, value []byte, opts *store.WriteOptions) error + func (s *Consul) Watch(key string, stopCh <-chan struct{}) (<-chan *store.KVPair, error) + func (s *Consul) WatchTree(directory string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error)