Documentation ¶
Index ¶
- Constants
- type CDCPostgres
- func (c *CDCPostgres) Close(_ context.Context) error
- func (c *CDCPostgres) DisplayError(msg *records.ErrorRecord) error
- func (c *CDCPostgres) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
- func (c *CDCPostgres) Dynamic(ctx context.Context, dynamicOpts *opts.DynamicOptions, ...) error
- func (c *CDCPostgres) Name() string
- func (c *CDCPostgres) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
- func (c *CDCPostgres) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
- func (c *CDCPostgres) Test(_ context.Context) error
- func (c *CDCPostgres) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
Constants ¶
View Source
const BackendName = "cdc-postgres"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDCPostgres ¶
type CDCPostgres struct {
// contains filtered or unexported fields
}
func New ¶
func New(connOpts *opts.ConnectionOptions) (*CDCPostgres, error)
func (*CDCPostgres) DisplayError ¶
func (c *CDCPostgres) DisplayError(msg *records.ErrorRecord) error
DisplayError will parse an Error record and print (pretty) output to STDOUT
func (*CDCPostgres) DisplayMessage ¶
func (c *CDCPostgres) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
func (*CDCPostgres) Dynamic ¶
func (c *CDCPostgres) Dynamic(ctx context.Context, dynamicOpts *opts.DynamicOptions, dynamicSvc dynamic.IDynamic, errorCh chan<- *records.ErrorRecord) error
func (*CDCPostgres) Name ¶
func (c *CDCPostgres) Name() string
func (*CDCPostgres) Read ¶
func (c *CDCPostgres) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error
func (*CDCPostgres) Relay ¶
func (c *CDCPostgres) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error
func (*CDCPostgres) Write ¶
func (c *CDCPostgres) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error
Click to show internal directories.
Click to hide internal directories.