package
1.0.5
Repository: https://github.com/cockroachdb/replicator.git
Documentation: pkg.go.dev

# Packages

Package besteffort contains a best-effort implementation of [types.MultiAcceptor].
Package chaos allows errors to be introduced in a sequencer stack.
Package core contains a sequencer implementation that preserves source transactions and relative timestamps.
Package immediate contains a trivial [sequencer.Sequencer] implementation which writes data directly to the configured acceptor.
Package retire contains a utility for removing old mutations.
Package scheduler contains Sequencer-specific utilities for ensuring ordered access to rows.
Package script provides an API shim that integrates the userscript into the [sequencer.Sequencer] API.
Package seqtest provides a test fixture for instantiating sequencers and other general-purpose test helpers.
Package sequtil contains sequencer utility methods.
Package switcher contains a meta-Sequencer that switches between various modes of operation.

# Functions

CommonProgress returns the minimum progress across all tables within the [Stat.Group].
IsMarking returns true if the acceptor implements [MarkingAcceptor] or [MarkingAcceptor] is implemented by an acceptor somewhere in a delegate chain.
NewStat constructs a basic Stat.

# Constants

Defaults for flag bindings.
Defaults for flag bindings.
Defaults for flag bindings.
Defaults for flag bindings.
Defaults for flag bindings.
Defaults for flag bindings.
Defaults for flag bindings.
Defaults for flag bindings.

# Structs

Config is an injection point common to sequencer implementations.
StartOptions is passed to [Sequencer.Start].

# Interfaces

MarkingAcceptor is a marker interface to indicate that a [types.MultiAcceptor] will assume responsibility for calling [types.Stager.MarkApplied].
A Sequencer implements a lifecycle strategy for mutations.
A Shim allows the behaviors of another Sequencer to be modified.
Stat is an interface to allow for more specialized types to aid in testing.