Versions in this module Expand all Collapse all v0 v0.9.5 Feb 26, 2018 v0.9.4 Feb 20, 2018 Changes in this version + const LockRenewInterval + const LockRetryInterval + const LockTTL + const LockWatchRetryInterval + const LockWatchRetryMax + func NewBackend(c map[string]string, logger log.Logger) (physical.Backend, error) + type Backend struct + func (b *Backend) Delete(ctx context.Context, key string) error + func (b *Backend) Get(ctx context.Context, key string) (*physical.Entry, error) + func (b *Backend) HAEnabled() bool + func (b *Backend) List(ctx context.Context, prefix string) ([]string, error) + func (b *Backend) LockWith(key, value string) (physical.Lock, error) + func (b *Backend) Put(ctx context.Context, entry *physical.Entry) error + func (b *Backend) Transaction(ctx context.Context, txns []*physical.TxnEntry) error + type Lock struct + func (l *Lock) Lock(stopCh <-chan struct{}) (<-chan struct{}, error) + func (l *Lock) Unlock() error + func (l *Lock) Value() (bool, string, error) + type LockRecord struct + Identity string + Key string + Timestamp time.Time + Value string