package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Packages
Package slinstance provides functionality for acquiring sqlliveness leases via sessions that have a unique id and expiration.
Package slprovider exposes an implementation of the sqlliveness.Provider interface.
# Variables
NotStartedError can be returned from calls to the sqlliveness subsystem prior to its being started.
# Structs
TestingKnobs contains test knobs for sqlliveness system behavior.
# Interfaces
Instance represents a SQL tenant server instance and is responsible for maintaining at most once session for this instance and heart beating the current live one if it exists and otherwise creating a new live one.
Provider is a wrapper around the sqlliveness subsystem for external consumption.
Reader abstracts over the state of session records.
Session represents a SQL instance lock with expiration.
StorageReader provides access to Readers which either block or do not block.
# Type aliases
SessionID represents an opaque identifier for a session.