package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
NewWatcher instantiates a Watcher.
Start calls Run on the Watcher as an async task with exponential backoff.
# Constants
CompleteUpdate indicates that the events represent the entirety of data in the spans.
IncrementalUpdate indicates that the events represent an incremental update since the previous update.
# Structs
TestingKnobs allows tests to inject behavior into the Watcher.
Update corresponds to a set of events derived from the underlying RangeFeed.
Watcher is used to implement a consistent cache over spans of KV data on top of a RangeFeed.
# Type aliases
OnUpdateFunc is used by the client to receive an Update, which is a batch of events which represent either a CompleteUpdate or an IncrementalUpdate.
TranslateEventFunc is used by the client to translate a low-level event into an event for buffering.
UpdateType is passed to an OnUpdateFunc to indicate whether the set of events represents a complete update or an incremental update.