destination

package
v0.2.0-nightly.20220218 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Position record.Position
	// contains filtered or unexported fields
}

Destination fulfills the Destination interface

func (*Destination) Open

func (s *Destination) Open(ctx context.Context, cfg plugins.Config) error

Open attempts to open a database connection to Postgres.

func (*Destination) Teardown

func (s *Destination) Teardown() error

Teardown will attempt to gracefully close the database connection.

func (*Destination) Validate

func (s *Destination) Validate(cfg plugins.Config) error

Validate will validate a configuration.

func (*Destination) Write

Write will write the record to the Destination and then returns the written Position or an error.

Jump to

Keyboard shortcuts

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