config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name             string
	InputConfig      InputConfig       `toml:"input"`
	OutputConfig     OutputConfig      `toml:"output"`
	TransformsConfig []TransformConfig `toml:"transforms"`
	FileName         *string
}

func NewConfig

func NewConfig(fileName *string) (c *Config)

func (*Config) ReadConfig

func (c *Config) ReadConfig() error

type DorisConfig added in v0.2.0

type DorisConfig struct {
	Host     string
	Port     int
	LoadPort int `mapstructure:"load-port"`
	UserName string
	Password string
	Options  struct {
		BatchSize       int `toml:"batch-size" mapstructure:"batch-size"`
		BatchIntervalMs int `toml:"batch-interval-ms" mapstructure:"batch-interval-ms"`
	}
}

type InputConfig

type InputConfig struct {
	Type   string                 `toml:"type"`
	Config map[string]interface{} `toml:"config"`
}

type KafkaConfig added in v0.3.0

type KafkaConfig struct {
	Brokers      []string `toml:"brokers"`
	PartitionNum int      `toml:"partition-num" mapstructure:"partition-num"`
	Options      struct {
		BatchSize       int    `toml:"batch-size" mapstructure:"batch-size"`
		BatchIntervalMs int    `toml:"batch-interval-ms" mapstructure:"batch-interval-ms"`
		OutputFormat    string `toml:"output-format" mapstructure:"output-format"`
	}
}

type MysqlConfig

type MysqlConfig struct {
	Host     string
	Port     int
	UserName string
	Password string
	Options  struct {
		StartGtid       string `toml:"start-gtid"`
		ServerId        int    `toml:"server-id"`
		BatchSize       int    `toml:"batch-size"`
		BatchIntervalMs int    `toml:"batch-interval-ms"`
	}
}

type OutputConfig

type OutputConfig struct {
	Type   string                 `toml:"type"`
	Config map[string]interface{} `toml:"config"`
}

type StarrocksConfig

type StarrocksConfig struct {
	Host     string
	Port     int
	LoadPort int `mapstructure:"load-port"`
	UserName string
	Password string
	Options  struct {
		BatchSize       int `toml:"batch-size" mapstructure:"batch-size"`
		BatchIntervalMs int `toml:"batch-interval-ms" mapstructure:"batch-interval-ms"`
	}
}

type TransformConfig

type TransformConfig struct {
	Type   string                 `toml:"type"`
	Config map[string]interface{} `toml:"config"`
}

Jump to

Keyboard shortcuts

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