Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSink ¶
type FileSink struct {
// contains filtered or unexported fields
}
FileSink represents a sink that writes data to files
func NewFileSink ¶
NewFileSink creates a new FileSink instance
func (*FileSink) WriteBatch ¶
func (s *FileSink) WriteBatch(messages []*utils.CDCMessage) error
WriteBatch writes a batch of data to the current log file
type PostgresSink ¶
type PostgresSink struct {
// contains filtered or unexported fields
}
PostgresSink represents a sink for PostgreSQL database
func NewPostgresSink ¶
func NewPostgresSink(targetHost string, targetPort int, targetDBName, targetUser, targetPassword string, syncSchema bool, sourceHost string, sourcePort int, sourceDBName, sourceUser, sourcePassword string, disableForeignKeyChecks bool) (*PostgresSink, error)
NewPostgresSink creates a new PostgresSink instance
func (*PostgresSink) Close ¶
func (s *PostgresSink) Close() error
Close closes the database connection
func (*PostgresSink) WriteBatch ¶
func (s *PostgresSink) WriteBatch(messages []*utils.CDCMessage) error
WriteBatch writes a batch of CDC messages to the target database
type Sink ¶
type Sink interface {
WriteBatch(data []*utils.CDCMessage) error
}
type StdoutSink ¶
type StdoutSink struct{}
StdoutSink represents a sink that writes data to standard output
func NewStdoutSink ¶
func NewStdoutSink() (*StdoutSink, error)
NewStdoutSink creates a new StdoutSink instance
func (*StdoutSink) WriteBatch ¶
func (s *StdoutSink) WriteBatch(messages []*utils.CDCMessage) error
WriteBatch writes a batch of data to standard output
type WebhookSink ¶
type WebhookSink struct {
// contains filtered or unexported fields
}
WebhookSink represents a sink that sends data to a webhook endpoint
func NewWebhookSink ¶
func NewWebhookSink(webhookURL string) (*WebhookSink, error)
NewWebhookSink creates a new WebhookSink instance
func (*WebhookSink) Close ¶
func (s *WebhookSink) Close() error
Close performs any necessary cleanup (no-op for WebhookSink)
func (*WebhookSink) WriteBatch ¶
func (s *WebhookSink) WriteBatch(messages []*utils.CDCMessage) error
WriteBatch sends a batch of data to the webhook endpoint