core

package
v0.0.0-...-1f15b0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package core contains a sequencer implementation that preserves source transactions and relative timestamps.

Index

Constants

This section is empty.

Variables

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

Start implements sequencer.Sequencer. It will incrementally unstage and apply batches of mutations within the given bounds.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL