# Functions
NewElection returns a new election on a given key prefix.
NewLocker creates a sync.Locker backed by an etcd mutex.
NewSession gets the leased session for a client.
NewSTM initiates a new STM instance, using serializable snapshot isolation by default.
NewSTMReadCommitted is deprecated.
NewSTMRepeatable is deprecated.
NewSTMSerializable is deprecated.
ResumeElection initializes an election with a known leader.
WithAbortContext specifies the context for permanently aborting the transaction.
WithContext assigns a context to the session instead of defaulting to using the client context.
WithIsolation specifies the transaction isolation level.
WithLease specifies the existing leaseID to be used for the session.
WithPrefetch is a hint to prefetch a list of keys before trying to apply.
WithTTL configures the session's TTL in seconds.
# Constants
ReadCommitted reads keys from any committed revision.
RepeatableReads reads within the same transaction attempt always return the same data.
Serializable reads within the same transaction attempt return data from the at the revision of the first read.
SerializableSnapshot provides serializable isolation and also checks for write conflicts.
# Variables
ErrLocked is returned by TryLock when Mutex is already locked by another session.
# Interfaces
STM is an interface for software transactional memory.
# Type aliases
Isolation is an enumeration of transactional isolation levels which describes how transactions should interfere and conflict.
SessionOption configures Session.