besteffort

package
v0.0.0-...-9e054ec Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package besteffort contains a best-effort implementation of types.MultiAcceptor.

Index

Constants

This section is empty.

Variables

Set is used by Wire.

Functions

This section is empty.

Types

type BestEffort

type BestEffort struct {
	// contains filtered or unexported fields
}

BestEffort injects an acceptor shim that will attempt to write directly to the target table. It will also run a concurrent sequencer for each table that is provided.

func ProvideBestEffort

func ProvideBestEffort(
	cfg *sequencer.Config,
	leases types.Leases,
	scheduler *scheduler.Scheduler,
	stagingPool *types.StagingPool,
	stagers types.Stagers,
	targetPool *types.TargetPool,
	watchers types.Watchers,
) *BestEffort

ProvideBestEffort is called by Wire.

func (*BestEffort) SetTimeSource

func (s *BestEffort) SetTimeSource(source func() hlc.Time)

SetTimeSource is called by tests that need to ensure lock-step behaviors in sweepTable or when testing the proactive timestamp behavior.

func (*BestEffort) Wrap

func (s *BestEffort) Wrap(
	_ *stopper.Context, delegate sequencer.Sequencer,
) (sequencer.Sequencer, error)

Wrap implements sequencer.Shim.

Jump to

Keyboard shortcuts

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