syncpointstore

package
v0.0.0-...-4624acb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncPointStore

type SyncPointStore interface {
	// CreateSyncTable create a table to record the syncpoints
	CreateSyncTable(ctx context.Context) error

	// SinkSyncPoint record the syncpoint(a map with ts) in downstream db
	SinkSyncPoint(ctx context.Context, id model.ChangeFeedID, checkpointTs uint64) error

	// Close closes the SyncPointSink
	Close() error
}

SyncPointStore is an abstraction for anything that a changefeed may emit into.

func NewSyncPointStore

func NewSyncPointStore(
	ctx context.Context,
	changefeedID model.ChangeFeedID,
	sinkURIStr string,
	replicaConfig *config.ReplicaConfig,
) (SyncPointStore, error)

NewSyncPointStore creates a new SyncPoint sink with the sink-uri

Jump to

Keyboard shortcuts

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