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

# Functions

MakeTask creates a new task with the provided state machine and decoder.
NewAsserter creates a new asserter.

# Variables

ErrRemoved can be returned from ApplySideEffects which will stop the task from processing more commands and return immediately.

# Structs

Asserter is a test utility that tracks application of Raft commands, and primarily asserts that: - A request is only applied once, at a single log index and lease applied index across all replicas (i.e.
Task is an object capable of coordinating the application of commands to a replicated state machine after they have been durably committed to a raft log.

# Interfaces

AppliedCommand is a command that has been applied to the replicated state machine.
AppliedCommandIterator is an iterator over applied replicated commands.
AppliedCommandList is a list of applied replicated commands.
Batch accumulates a series of updates from Commands and performs them all at once to its StateMachine when applied.
CheckedCommand is a command that has been checked to see whether it can apply successfully or not.
CheckedCommandIterator is an iterator over checked replicated commands.
CheckedCommandList is a list of checked replicated commands.
Command is a command that has been successfully replicated through raft by being durably committed to the raft log of a quorum of peers in a raft group.
CommandIterator is an iterator over replicated commands.
CommandIteratorBase is a common interface extended by all iterator and list variants.
CommandList is a list of replicated commands.
Decoder is capable of decoding a list of committed raft entries and binding any that were locally proposed to their local proposals.
An EphemeralBatch can stage a number of commands, but lacks the ability to apply them to a state machine.
StateMachine represents an instance of a replicated state machine being driven by a replication group.