Documentation ¶
Index ¶
- func BuildKVMap(changeItem *abstract.ChangeItem, connectorParameters map[string]string, ...) (map[string]interface{}, error)
- func GetPayloadTSMS(changeItem *abstract.ChangeItem) time.Time
- type Emitter
- func (m *Emitter) EmitKV(changeItem *abstract.ChangeItem, payloadTSMS time.Time, snapshot bool, ...) ([]debeziumcommon.KeyValue, error)
- func (m *Emitter) GetPackers() (packer.Packer, packer.Packer)
- func (m *Emitter) MaxMessageSize() int
- func (m *Emitter) TestSetIgnoreUnknownSources(ignoreUnknownSources bool)
- func (m *Emitter) ToConfluentSchemaKey(changeItem *abstract.ChangeItem, snapshot bool) ([]byte, error)
- func (m *Emitter) ToConfluentSchemaVal(changeItem *abstract.ChangeItem, snapshot bool) ([]byte, error)
- func (m *Emitter) ToKafkaPayloadKey(changeItem *abstract.ChangeItem, snapshot bool, emitType emitType) ([]byte, error)
- func (m *Emitter) ToKafkaPayloadVal(changeItem *abstract.ChangeItem, payloadTSMS time.Time, snapshot bool, ...) ([]byte, error)
- func (m *Emitter) ToKafkaSchemaKey(changeItem *abstract.ChangeItem, snapshot bool) ([]byte, error)
- func (m *Emitter) ToKafkaSchemaVal(changeItem *abstract.ChangeItem, snapshot bool) ([]byte, error)
- type Receiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKVMap ¶
func BuildKVMap(changeItem *abstract.ChangeItem, connectorParameters map[string]string, snapshot bool) (map[string]interface{}, error)
BuildKVMap - builds 'after' k-v map
func GetPayloadTSMS ¶
func GetPayloadTSMS(changeItem *abstract.ChangeItem) time.Time
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
func NewMessagesEmitter ¶
func (*Emitter) EmitKV ¶
func (m *Emitter) EmitKV(changeItem *abstract.ChangeItem, payloadTSMS time.Time, snapshot bool, sessionPackers packer.SessionPackers) ([]debeziumcommon.KeyValue, error)
EmitKV - main exported method - generates kafka key & kafka value
func (*Emitter) MaxMessageSize ¶
func (*Emitter) TestSetIgnoreUnknownSources ¶
func (*Emitter) ToConfluentSchemaKey ¶
func (*Emitter) ToConfluentSchemaVal ¶
func (*Emitter) ToKafkaPayloadKey ¶
func (m *Emitter) ToKafkaPayloadKey(changeItem *abstract.ChangeItem, snapshot bool, emitType emitType) ([]byte, error)
ToKafkaPayloadKey - generate schema for a key message
func (*Emitter) ToKafkaPayloadVal ¶
func (*Emitter) ToKafkaSchemaKey ¶
func (*Emitter) ToKafkaSchemaVal ¶
ToKafkaSchemaVal - generate a schema for a val message
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
func NewReceiver ¶
func NewReceiver(originalTypes map[abstract.TableID]map[string]*debeziumcommon.OriginalTypeInfo, schemaRegistryClient *confluent.SchemaRegistryClient) *Receiver
Source Files ¶
Click to show internal directories.
Click to hide internal directories.