cloudstorage

package
v0.0.0-...-be15534 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DDLSink

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

DDLSink is a sink that sends DDL events to the cloud storage system.

func NewDDLSink

func NewDDLSink(ctx context.Context,
	changefeedID model.ChangeFeedID,
	sinkURI *url.URL,
	replicaConfig *config.ReplicaConfig,
) (*DDLSink, error)

NewDDLSink creates a ddl sink for cloud storage.

func (*DDLSink) Close

func (d *DDLSink) Close()

Close closes the sink.

func (*DDLSink) WriteCheckpointTs

func (d *DDLSink) WriteCheckpointTs(ctx context.Context,
	ts uint64, tables []*model.TableInfo,
) error

WriteCheckpointTs writes the checkpoint ts to the cloud storage.

func (*DDLSink) WriteDDLEvent

func (d *DDLSink) WriteDDLEvent(ctx context.Context, ddl *model.DDLEvent) error

WriteDDLEvent writes the ddl event to the cloud storage.

Jump to

Keyboard shortcuts

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