package
3.1.0-alpha.1+incompatible
Repository: https://github.com/chzyer-dev/etcd.git
Documentation: pkg.go.dev

# Functions

NewElection returns a new election on a given key prefix.
NewLocker creates a sync.Locker backed by an etcd mutex.
No description provided by the author
NewSession gets the leased session for a client.
NewSTMReadCommitted initiates a new read committed transaction.
NewSTMRepeatable initiates new repeatable read transaction; reads within the same transaction attempt always return the same data.
NewSTMSerializable initiates a new serialized transaction; reads within the same transactiona attempt return data from the revision of the first read.
WithTTL configures the session's TTL in seconds.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Mutex implements the sync Locker interface with etcd.
Session represents a lease kept alive for the lifetime of a client.

# Interfaces

STM is an interface for software transactional memory.

# Type aliases

SessionOption configures Session.