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 ¶
View Source
var Set = wire.NewSet( ProvideFactory, )
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.
Click to show internal directories.
Click to hide internal directories.