Documentation
¶
Overview ¶
Package core contains a sequencer implementation that preserves source transactions and relative timestamps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet(ProvideCore)
Set is used by Wire.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
The Core sequencer accepts batches by writing them to a staging table. It will then apply the data in a transactionally-consistent and possibly concurrent fashion.
func ProvideCore ¶
func ProvideCore( cfg *sequencer.Config, leases types.Leases, scheduler *scheduler.Scheduler, stagers types.Stagers, stagingPool *types.StagingPool, targetPool *types.TargetPool, ) *Core
ProvideCore is called by Wire.
func (*Core) Start ¶
func (s *Core) Start( ctx *stopper.Context, opts *sequencer.StartOptions, ) (types.MultiAcceptor, *notify.Var[sequencer.Stat], error)
Start implements sequencer.Sequencer. It will incrementally unstage and apply batches of mutations within the given bounds.
Click to show internal directories.
Click to hide internal directories.