# 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.
WithContext assigns a context to the session instead of defaulting to using the client context.
WithTTL configures the session's TTL in seconds.
# Variables
No description provided by the author
No description provided by the author
# Interfaces
STM is an interface for software transactional memory.
# Type aliases
SessionOption configures Session.