destination

package
v0.0.0-...-0afbe17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDestination

func NewDestination() sdk.Destination

NewDestination initialises a new Destination.

Types

type Destination

type Destination struct {
	sdk.UnimplementedDestination
	// contains filtered or unexported fields
}

Destination is a Redshift destination plugin.

func (*Destination) Configure

func (d *Destination) Configure(ctx context.Context, cfg commonsConfig.Config) error

Configure parses and stores configurations, returns an error in case of invalid configuration.

func (*Destination) Open

func (d *Destination) Open(ctx context.Context) error

Open makes sure everything is prepared to receive records.

func (*Destination) Parameters

func (d *Destination) Parameters() commonsConfig.Parameters

Parameters returns a map of named Parameters that describe how to configure the Destination.

func (*Destination) Teardown

func (d *Destination) Teardown(ctx context.Context) error

Teardown gracefully closes connections.

func (*Destination) Write

func (d *Destination) Write(ctx context.Context, records []opencdc.Record) (int, error)

Write writes records into a Destination.

type Writer

type Writer interface {
	Insert(context.Context, opencdc.Record) error
	Update(context.Context, opencdc.Record) error
	Delete(context.Context, opencdc.Record) error
	Stop() error
}

Writer defines a writer interface needed for the Destination.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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