Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicationTables ¶ added in v0.0.5
func RevertChangeSet ¶ added in v0.1.0
Types ¶
type Change ¶
type Change struct {
ServerTime time.Time `json:"servertime"`
Kind string `json:"kind"`
Schema string `json:"schema"`
Table string `json:"table"`
ColumnNames []string `json:"columnnames"`
ColumnValues []any `json:"columnvalues"`
OldKeys struct {
KeyNames []string `json:"keynames,omitempty"`
KeyValues []any `json:"keyvalues,omitempty"`
} `json:"oldkeys"`
SQL string `json:"sql"`
}
type CheckpointLoader ¶
type HandleChanges ¶
type SlotInfo ¶ added in v0.1.0
type SlotInfo struct {
Name string `json:"name"`
Plugin string `json:"plugin"`
Database string `json:"database"`
SnapshotName string `json:"snapshotName"`
RestartLSN string `json:"restartLSN"`
}
func CreateSlot ¶ added in v0.0.3
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func Subscribe ¶ added in v0.0.3
func Subscribe(cfg Config, handler HandleChanges, useNamespace bool) (*Subscription, error)
func (*Subscription) DSN ¶
func (s *Subscription) DSN() string
func (*Subscription) LastError ¶
func (s *Subscription) LastError() error
func (*Subscription) PublicationName ¶
func (s *Subscription) PublicationName() string
func (*Subscription) SlotName ¶
func (s *Subscription) SlotName() string
func (*Subscription) Start ¶
func (s *Subscription) Start(logger *slog.Logger, loadCheckpoint CheckpointLoader, retry bool) error
func (*Subscription) Stop ¶
func (s *Subscription) Stop()
Click to show internal directories.
Click to hide internal directories.