postgres_incr_sync

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresIncrSourcePlugin

func NewPostgresIncrSourcePlugin(appCtx *stream_context.Context, config Config, s []schema.StreamSchema) sources.DataSource

Types

type Config

type Config struct {
	Host           string                           `json:"host" yaml:"host"`
	Port           int                              `json:"port" yaml:"port"`
	Database       string                           `json:"database" yaml:"database"`
	User           string                           `json:"user" yaml:"user"`
	Schema         string                           `json:"schema" yaml:"schema"`
	Password       string                           `json:"password" yaml:"password"`
	TablesSchema   []pglogicalstream.DbTablesSchema `json:"tables_schema" yaml:"tables_schema"`
	SSLRequired    bool                             `json:"ssl_required" yaml:"ssl_required"`
	StreamSnapshot bool                             `json:"stream_snapshot" yaml:"stream_snapshot"`
}

type SourcePlugin

type SourcePlugin struct {
	// contains filtered or unexported fields
}

func (*SourcePlugin) Connect

func (p *SourcePlugin) Connect(ctx context.Context) error

func (*SourcePlugin) Events

func (p *SourcePlugin) Events() chan sources.MessageEvent

func (*SourcePlugin) Start

func (p *SourcePlugin) Start()

func (*SourcePlugin) Stop

func (p *SourcePlugin) Stop()

Jump to

Keyboard shortcuts

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