package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
EncodeSettingKey encodes a key for the system.settings table, which can be used for direct KV operations.
EncodeSettingValue encodes a value for the system.settings table, which can be used for direct KV operations.
MakeRowDecoder makes a new RowDecoder for the settings table.
New constructs a new SettingsWatcher.
NewWithNotifier constructs a new SettingsWatcher which notifies an observer about changes to SystemVisible settings.
NewWithOverrides constructs a new SettingsWatcher which allows external overrides, discovered through an OverridesMonitor.
TestMakeVersionGuard initializes a version guard at specific version.
# Structs
RowDecoder decodes rows from the settings table.
SettingsWatcher is used to watch for cluster settings changes with a rangefeed.
VersionGuard is a utility for checking the cluster version in a transaction.
# Interfaces
OverridesMonitor is an interface through which the settings watcher can receive setting overrides.
Storage is used to write a snapshot of KVs out to disk for use upon restart.