package
19.2.12+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.

# Variables

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

# Structs

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.
StateMachine represents an instance of a replicated state machine being driven by a replication group.