Documentation ¶
Index ¶
- func NewDestination() sdk.Destination
- type Destination
- func (d *Destination) Configure(ctx context.Context, cfg commonsConfig.Config) error
- func (d *Destination) Open(ctx context.Context) error
- func (d *Destination) Parameters() commonsConfig.Parameters
- func (d *Destination) Teardown(ctx context.Context) error
- func (d *Destination) Write(ctx context.Context, records []opencdc.Record) (int, error)
- type Writer
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.
Click to show internal directories.
Click to hide internal directories.