Documentation
¶
Index ¶
- type CDCPayload
- type Connector
- type DB2Connector
- func (c *DB2Connector) Ack(ctx context.Context, msg hermod.Message) error
- func (c *DB2Connector) Close() error
- func (c *DB2Connector) Ping(ctx context.Context) error
- func (c *DB2Connector) Read(ctx context.Context) (hermod.Message, error)
- func (c *DB2Connector) Stream(ctx context.Context, checkpoint string) error
- type OracleConnector
- func (c *OracleConnector) Ack(ctx context.Context, msg hermod.Message) error
- func (c *OracleConnector) Close() error
- func (c *OracleConnector) Ping(ctx context.Context) error
- func (c *OracleConnector) Read(ctx context.Context) (hermod.Message, error)
- func (c *OracleConnector) Stream(ctx context.Context, checkpoint string) error
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDCPayload ¶
type CDCPayload struct {
Before map[string]any `json:"before"`
After map[string]any `json:"after"`
Op string `json:"op"` // c, u, d, r
Source map[string]any `json:"source"`
TS int64 `json:"ts_ms"`
}
CDCPayload represents the structure of a change data capture event.
type Connector ¶
type Connector interface {
hermod.Source
// Stream starts the CDC streaming from a specific checkpoint.
Stream(ctx context.Context, checkpoint string) error
}
Connector defines the interface for Change Data Capture connectors.
type DB2Connector ¶
type DB2Connector struct{}
DB2Connector implements CDC for IBM DB2 databases.
func NewDB2Connector ¶
func NewDB2Connector() *DB2Connector
func (*DB2Connector) Close ¶
func (c *DB2Connector) Close() error
type OracleConnector ¶
type OracleConnector struct{}
OracleConnector implements CDC for Oracle databases using LogMiner.
func NewOracleConnector ¶
func NewOracleConnector() *OracleConnector
func (*OracleConnector) Close ¶
func (c *OracleConnector) Close() error
Click to show internal directories.
Click to hide internal directories.