Versions in this module Expand all Collapse all v1 v1.0.1 Aug 23, 2026 v1.0.0 Aug 23, 2026 Changes in this version + const ConnectorHeader + const DatabaseHeader + const DebeziumJSONContentType + const LSNHeader + const OperationHeader + const SchemaHeader + const SnapshotHeader + const TableHeader + const TxIDHeader + var ErrMalformedEnvelope = errors.New("cdc: malformed change-event envelope") + var ErrMissingImage = errors.New("cdc: row image absent") + var ErrUnknownOperation = errors.New("cdc: unknown operation") + func AfterAs[T any](e ChangeEvent) (T, error) + func BeforeAs[T any](e ChangeEvent) (T, error) + func SourceHeaders(e ChangeEvent) source.Headers + type ChangeEvent struct + After RawJSON + Before RawJSON + Operation Operation + Source SourceMetadata + Timestamp time.Time + func DecodeEvent(r *source.Registry, m source.Message) (ChangeEvent, error) + func EventOf(v any) (ChangeEvent, bool) + type Codec struct + func New() Codec + func (Codec) Decode(data []byte, _ source.Headers) (any, error) + type Operation uint8 + const OpCreate + const OpDelete + const OpRead + const OpTombstone + const OpUnknown + const OpUpdate + func (o Operation) String() string + type RawJSON []byte + func (r RawJSON) As(out any) error + func (r RawJSON) Present() bool + type SourceMetadata struct + Connector string + Database string + LSN string + Name string + Raw RawJSON + Schema string + Snapshot bool + Table string + TxID string