Documentation ¶
Index ¶
- Constants
- type Buildable
- type Builder
- func Bits(length int) Builder
- func Boolean() Builder
- func Bytes() Builder
- func Enum(enumValues []string) Builder
- func Float32() Builder
- func Float64() Builder
- func Geography() Builder
- func Geometry() Builder
- func HStore() Builder
- func Int16() Builder
- func Int32() Builder
- func Int64() Builder
- func Int8() Builder
- func Json() Builder
- func Ltree() Builder
- func Map() Builder
- func NewSchemaBuilder(schemaType Type) Builder
- func SourceSchema() Builder
- func String() Builder
- func Uuid() Builder
- func Xml() Builder
- type ColumnAlike
- type Field
- type FieldName
- type Identifiable
- type NameGenerator
- type Operation
- type Struct
- func CompressionEvent(source Struct) Struct
- func CreateEvent(record Struct, source Struct) Struct
- func DecompressionEvent(source Struct) Struct
- func DeleteEvent(before, source Struct, tombstone bool) Struct
- func Envelope(schema, payload Struct) Struct
- func EnvelopeMessageSchema(nameGenerator NameGenerator) Struct
- func EnvelopeSchema(nameGenerator NameGenerator, table TableAlike) Struct
- func KeySchema(nameGenerator NameGenerator, table TableAlike) Struct
- func MessageEvent(prefix string, content *string, source Struct) Struct
- func MessageKey(prefix string) Struct
- func MessageKeySchema() Struct
- func MessageValueSchema() Struct
- func ReadEvent(record Struct, source Struct) Struct
- func Source(lsn pglogrepl.LSN, timestamp time.Time, snapshot bool, ...) Struct
- func TimescaleEventKeySchema() Struct
- func TimescaleKey(schemaName, tableName string) Struct
- func TruncateEvent(source Struct) Struct
- func UpdateEvent(before, after, source Struct) Struct
- type TableAlike
- type TimescaleOperation
- type Type
Constants ¶
View Source
const ( BitsSchemaName = "io.debezium.data.Bits" EnumSchemaName = "io.debezium.data.Enum" LtreeSchemaName = "io.debezium.data.Lree" JsonSchemaName = "io.debezium.data.Json" UuidSchemaName = "io.debezium.data.Uuid" XmlSchemaName = "io.debezium.data.Xml" GeographySchemaName = "io.debezium.data.geometry.Geography" GeometrySchemaName = "io.debezium.data.geometry.Geometry" PointSchemaName = "io.debezium.data.geometry.Point" )
View Source
const MessageBlockSchemaName = "io.debezium.connector.postgresql.Message"
View Source
const MessageKeySchemaName = "io.debezium.connector.postgresql.MessageKey"
View Source
const MessageValueSchemaName = "io.debezium.connector.postgresql.MessageValue"
View Source
const SourceSchemaName = "io.debezium.connector.postgresql.Source"
View Source
const TimescaleEventSchemaName = "com.timescale.Event"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.4.0
type Builder interface { SchemaType() Type FieldName( fieldName string, ) Builder GetFieldName() string SchemaName( schemaName string, ) Builder GetSchemaName() string Optional() Builder Required() Builder SetOptional( optional bool, ) Builder IsOptional() bool DefaultValue( defaultValue *string, ) Builder GetDefaultValue() *string Version( version int, ) Builder GetVersion() int Index( index int, ) Builder GetIndex() int Documentation( documentation *string, ) Builder GetDocumentation() *string Parameter( key string, value any, ) Builder Parameters() map[string]any Field( name FieldName, index int, schemaBuilder Builder, ) Builder Fields() map[string]Field KeySchema( builder Builder, ) Builder GetKeySchema() Builder ValueSchema( builder Builder, ) Builder GetValueSchema() Builder Clone() Builder Build() Struct }
func NewSchemaBuilder ¶ added in v0.3.1
func SourceSchema ¶
func SourceSchema() Builder
type ColumnAlike ¶ added in v0.3.1
type FieldName ¶ added in v0.3.1
type FieldName = string
const ( FieldNameBefore FieldName = "before" FieldNameAfter FieldName = "after" FieldNameOperation FieldName = "op" FieldNameSource FieldName = "source" FieldNameTransaction FieldName = "transaction" FieldNameTimestamp FieldName = "ts_ms" FieldNameTimescaleOp FieldName = "tsdb_op" FieldNameVersion FieldName = "version" FieldNameSchema FieldName = "schema" FieldNamePayload FieldName = "payload" FieldNameConnector FieldName = "connector" FieldNameName FieldName = "name" FieldNameSnapshot FieldName = "snapshot" FieldNameDatabase FieldName = "db" FieldNameSequence FieldName = "sequence" FieldNameTable FieldName = "table" FieldNameTxId FieldName = "txId" FieldNameLSN FieldName = "lsn" FieldNameXmin FieldName = "xmin" FieldNameType FieldName = "type" FieldNameOptional FieldName = "optional" FieldNameField FieldName = "field" FieldNameFields FieldName = "fields" FieldNameDefault FieldName = "default" FieldNamePrefix FieldName = "prefix" FieldNameContent FieldName = "content" FieldNameMessage FieldName = "message" FieldNameIndex FieldName = "index" FieldNameKeySchema FieldName = "keySchema" FieldNameValueSchema FieldName = "valueSchema" FieldNameAllowed FieldName = "allowed" FieldNameLength FieldName = "length" )
type Identifiable ¶ added in v0.3.1
type NameGenerator ¶ added in v0.3.1
type NameGenerator interface { // EventTopicName generates an event topic name for the given table EventTopicName( table TableAlike, ) string // SchemaTopicName generates a schema topic name for the given v SchemaTopicName( table TableAlike, ) string // MessageTopicName generates a message topic name for a replication message MessageTopicName() string }
NameGenerator wraps a namingstrategy.NamingStrategy to simplify its usage with the topic prefix being predefined
func NewNameGenerator ¶ added in v0.4.0
func NewNameGenerator( topicPrefix string, namingStrategy namingstrategy.NamingStrategy, ) NameGenerator
func NewNameGeneratorFromConfig ¶ added in v0.4.0
func NewNameGeneratorFromConfig( c *config.Config, namingStrategy namingstrategy.NamingStrategy, ) NameGenerator
type Struct ¶
func CompressionEvent ¶
func CreateEvent ¶
func DecompressionEvent ¶
func DeleteEvent ¶
func EnvelopeMessageSchema ¶
func EnvelopeMessageSchema( nameGenerator NameGenerator, ) Struct
func EnvelopeSchema ¶
func EnvelopeSchema( nameGenerator NameGenerator, table TableAlike, ) Struct
func KeySchema ¶
func KeySchema( nameGenerator NameGenerator, table TableAlike, ) Struct
func MessageKey ¶
func MessageKeySchema ¶
func MessageKeySchema() Struct
func MessageValueSchema ¶
func MessageValueSchema() Struct
func TimescaleEventKeySchema ¶
func TimescaleEventKeySchema() Struct
func TimescaleKey ¶
func TruncateEvent ¶
func UpdateEvent ¶
type TableAlike ¶ added in v0.3.1
type TableAlike interface { Identifiable Buildable TableColumns() []ColumnAlike KeyIndexColumns() []ColumnAlike }
type TimescaleOperation ¶
type TimescaleOperation string
const ( OP_COMPRESSION TimescaleOperation = "c" OP_DECOMPRESSION TimescaleOperation = "d" )
type Type ¶ added in v0.3.1
type Type string
Type is a string like definition of the available event stream data types
func (Type) IsPrimitive ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.