package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
MakeSessionID encodes the region and uuid into a binary string.
NewFakeStorage creates a new FakeStorage.
NewStorage creates a new storage struct.
NewTestingStorage constructs a new storage with control for the database in which the `sqlliveness` table should exist.
SafeDecodeSessionID decodes the region and id from the SessionID.
UnsafeDecodeSessionID decodes the region and id from the SessionID.
ValidateSessionID validates that the SessionID has the correct format.
# Variables
CacheSize is the size of the entries to store in the cache.
GCInterval specifies duration between attempts to delete extant sessions that have expired.
GCJitter specifies the jitter fraction on the interval between attempts to delete extant sessions that have expired.
# Structs
FakeStorage implements the sqlliveness.Reader interface, and the slinstace.Writer interface.
Metrics is a metric.Struct which holds metrics for slstorage.
Storage deals with reading and writing session records.