config

package
v0.0.0-...-db03bc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDCConfig

type CDCConfig struct {
	Mysql          MySQLSourceConfig `toml:"mysql"`
	SourceRules    SourceRule        `toml:"source_rules"`
	TransformRules []TransformRule   `toml:"transform_rule"`
	KafkaSink      KafkaSink         `toml:"kafka_sink"`
	State          StateTracking     `toml:"state_tracking"`
}

func NewCDCConfig

func NewCDCConfig(path string) (CDCConfig, error)

func NewCDCConfigList

func NewCDCConfigList(path string) ([]CDCConfig, error)

type KafkaSink

type KafkaSink struct {
	Name           string `toml:"name"`
	Addr           string `toml:"addr"`
	Port           int16  `toml:"port"`
	BatchSizeBytes int16  `toml:"batch_size_bytes"`
}

func (*KafkaSink) GetAddrList

func (ks *KafkaSink) GetAddrList() []string

type MySQLSourceConfig

type MySQLSourceConfig struct {
	Name     string `toml:"name"`
	Addr     string `toml:"addr"`
	Port     int16  `toml:"port"`
	User     string `toml:"user"`
	Pass     string `toml:"pass"`
	ServerId uint32 `toml:"server_id"`
}

type SourceRule

type SourceRule struct {
	IncludeSchemas []string `toml:"include_schemas"`
	ExcludeSchemas []string `toml:"exclude_schemas"`
	IncludeTables  []string `toml:"include_tables"`
	ExcludeTables  []string `toml:"exclude_tables"`
}

type StateTracking

type StateTracking struct {
	KafkaAddr string `toml:"kafka_addr"`
	Topic     string `toml:"state_topic"`
}

type TransformRule

type TransformRule struct {
	Name          string
	MatchSchema   string `toml:"match_schema"`
	MatchTable    string `toml:"match_table"`
	TransformFunc string `toml:"transform_func,multiline"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL