config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: GPL-2.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 BaseConfig added in v0.3.0

type BaseConfig struct {
	Name            string
	InputConfig     *InputConfig     `toml:"input"`
	OutputConfig    *OutputConfig    `toml:"output"`
	SyncParamConfig *SyncParamConfig `toml:"sync-param"`
	FilterConfig    []*FilterConfig  `toml:"filter"`
	FileName        *string
}

func NewBaseConfig added in v0.3.0

func NewBaseConfig(fileName *string) *BaseConfig

func (*BaseConfig) ReadBaseConfig added in v0.3.0

func (bc *BaseConfig) ReadBaseConfig() error

type DorisConfig added in v0.3.0

type DorisConfig struct {
	Host     string
	Port     int
	LoadPort int `mapstructure:"load-port"`
	UserName string
	Password string
}

type FilterConfig added in v0.3.0

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

type InputConfig added in v0.3.0

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

type MongoConfig added in v0.3.0

type MongoConfig struct {
	Uri      string
	UserName string
	Password string
}

type MysqlConfig added in v0.3.0

type MysqlConfig struct {
	Host     string
	Port     int
	UserName string
	Password string
}

type OutputConfig added in v0.3.0

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

type StarrocksConfig added in v0.3.0

type StarrocksConfig struct {
	Host     string
	Port     int
	LoadPort int `mapstructure:"load-port"`
	UserName string
	Password string
}

type SyncParamConfig added in v0.3.0

type SyncParamConfig struct {
	ChannelSize      int `toml:"channel-size"`
	FlushDelaySecond int `toml:"flush-delay-second"`
}

Jump to

Keyboard shortcuts

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