stage

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package stage defines a means of storing and retrieving mutations to be applied to a table.

Index

Constants

This section is empty.

Variables

Set is used by Wire.

Functions

func EnableSanityChecks added in v1.0.1

func EnableSanityChecks()

EnableSanityChecks can be called by test code to enable additional validation of the staging tables.

func ProvideFactory

func ProvideFactory(
	cfg *Config, db *types.StagingPool, stagingDB ident.StagingSchema, stop *stopper.Context,
) types.Stagers

ProvideFactory is called by Wire to construct the Stagers factory.

Types

type Config added in v1.0.5

type Config struct {
	MarkAppliedLimit  int           // Maximum batch size for the MarkApplied method.
	SanityCheckPeriod time.Duration // If positive, refresh [stageConsistencyErrors].
	SanityCheckWindow time.Duration // If positive, limit time range of records.
	UnappliedPeriod   time.Duration // If positive, report number of unapplied mutations.
}

Config sets tuneables when interacting with the staging tables.

func (*Config) Bind added in v1.0.5

func (c *Config) Bind(f *pflag.FlagSet)

Bind adds configuration flags to the set.

func (*Config) Preflight added in v1.0.5

func (c *Config) Preflight() error

Preflight ensures the Config is in a known-good state.

Jump to

Keyboard shortcuts

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