package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

Package ptprovider encapsulates the concrete implementation of the protectedts.Provider.
Package ptreconcile provides logic to reconcile protected timestamp records with state associated with their metadata.
Package ptstorage implements protectedts.Storage.

# Functions

EmptyCache returns a Cache which always returns the current time and no records.

# Variables

ErrExists returned from Protect when trying to protect a record with an ID which already exists.
ErrNotExists is returned from Get or Release if the record does not exist.
MaxBytes controls the maximum number of bytes worth of spans and metadata which can be protected by all protected timestamp records.
MaxSpans controls the maximum number of spans which can be protected by all protected timestamp records.
PollInterval defines how frequently the protectedts state is polled by the Tracker.

# Structs

TestingKnobs provide fine-grained control over the various span config components for testing.

# Interfaces

Cache is used in the storage package to determine a safe timestamp for garbage collection of expired data.
Provider is the central coordinator for the protectedts subsystem.
Reconciler provides a mechanism to reconcile protected timestamp records with external state.
Storage provides clients with a mechanism to transactionally protect and release protected timestamps for a set of spans.

# Type aliases

Iterator iterates records in a cache until wantMore is false or all Records in the requested range have been seen.