Documentation
¶
Index ¶
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.
Click to show internal directories.
Click to hide internal directories.