source

package
v0.0.0-...-045564c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource() sdk.Source

NewSource initialises a new source.

Types

type Source

type Source struct {
	sdk.UnimplementedSource
	// contains filtered or unexported fields
}

A Source represents the source connector.

func (*Source) Ack

func (s *Source) Ack(ctx context.Context, rp sdk.Position) error

Ack does nothing.

func (*Source) Configure

func (s *Source) Configure(ctx context.Context, cfgRaw map[string]string) error

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

func (*Source) Open

func (s *Source) Open(ctx context.Context, rp sdk.Position) error

Open parses sdk.Position and initializes a SnapshotIterator iterator.

func (*Source) Read

func (s *Source) Read(ctx context.Context) (sdk.Record, error)

Read returns the next sdk.Record.

func (*Source) Teardown

func (s *Source) Teardown(ctx context.Context) error

Teardown closes any connections which were previously connected from previous requests.

Directories

Path Synopsis
mock
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