source

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ConfigKeyPollingPeriod is the config name for the S3 CDC polling period
	ConfigKeyPollingPeriod = "pollingPeriod"
)

Variables

This section is empty.

Functions

func NewSource

func NewSource() sdk.Source

Types

type Config

type Config struct {
	sdk.DefaultSourceMiddleware
	config.Config

	// polling period for the CDC mode, formatted as a time.Duration string.
	PollingPeriod time.Duration `json:"pollingPeriod" default:"1s"`
}

Config represents source configuration with S3 configurations

type Iterator

type Iterator interface {
	HasNext(ctx context.Context) bool
	Next(ctx context.Context) (opencdc.Record, error)
	Stop()
}

type Source

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

Source connector

func (*Source) Ack

func (s *Source) Ack(ctx context.Context, position opencdc.Position) error

func (*Source) Config added in v0.9.0

func (s *Source) Config() sdk.SourceConfig

func (*Source) Open

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

Open prepare the plugin to start sending records from the given position

func (*Source) Read

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

Read gets the next object from the S3 bucket

func (*Source) Teardown

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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