Documentation ¶
Index ¶
- func NewIterator(ctx context.Context, cfg IteratorConfig) error
- func NewSource() sdk.Source
- type Iterator
- type IteratorConfig
- type Position
- type Source
- func (s *Source) Ack(ctx context.Context, position opencdc.Position) error
- func (s *Source) Configure(ctx context.Context, cfgRaw commonsConfig.Config) error
- func (s *Source) Open(ctx context.Context, position opencdc.Position) error
- func (s *Source) Parameters() commonsConfig.Parameters
- func (s *Source) Read(ctx context.Context) (opencdc.Record, error)
- func (s *Source) Teardown(ctx context.Context) error
- type TablePosition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIterator ¶
func NewIterator(ctx context.Context, cfg IteratorConfig) error
NewTableIterator creates a new iterator goroutine and polls redshift for new records.
Types ¶
type IteratorConfig ¶
type IteratorConfig struct {
// contains filtered or unexported fields
}
type Position ¶
type Position struct {
TablePositions *csync.Map[string, TablePosition] `json:"tablePositions"` // Use csync.Map for thread safety
}
Position represents Redshift's position.
func NewPosition ¶
func NewPosition() *Position
NewPosition initializes a new position when sdk position is nil.
type Source ¶
type Source struct { sdk.UnimplementedSource // contains filtered or unexported fields }
Source is an Amazon Redshift source plugin.
func (*Source) Configure ¶
Configure parses and stores configurations, returns an error in case of invalid configuration.
func (*Source) Parameters ¶
func (s *Source) Parameters() commonsConfig.Parameters
Parameters returns a map of named Parameters that describe how to configure the Source.
type TablePosition ¶
Click to show internal directories.
Click to hide internal directories.