config

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: GPL-2.0 Imports: 5 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
}

func (*DorisConfig) GetOutputTargetConfig added in v0.3.0

func (dc *DorisConfig) GetOutputTargetConfig() interface{}

func (*DorisConfig) NewOutputTargetConfig added in v0.3.0

func (dc *DorisConfig) NewOutputTargetConfig(config map[string]interface{})

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 InputSourceConfig added in v0.3.0

type InputSourceConfig interface {
	NewInputSourceConfig(config map[string]interface{})
	GetInputSourceConfig() interface{}
}

type MongoConfig added in v0.3.0

type MongoConfig struct {
	Uri      string
	UserName string
	Password string
}

func (*MongoConfig) GetInputSourceConfig added in v0.3.0

func (mc *MongoConfig) GetInputSourceConfig() interface{}

func (*MongoConfig) NewInputSourceConfig added in v0.3.0

func (mc *MongoConfig) NewInputSourceConfig(config map[string]interface{})

type MysqlConfig added in v0.3.0

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

func (*MysqlConfig) GetInputSourceConfig added in v0.3.0

func (mc *MysqlConfig) GetInputSourceConfig() interface{}

func (*MysqlConfig) NewInputSourceConfig added in v0.3.0

func (mc *MysqlConfig) NewInputSourceConfig(config map[string]interface{})

type OutputConfig added in v0.3.0

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

type OutputTargetConfig added in v0.3.0

type OutputTargetConfig interface {
	NewOutputTargetConfig(config map[string]interface{})
	GetOutputTargetConfig() interface{}
}

type StarrocksConfig added in v0.3.0

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

func (*StarrocksConfig) GetOutputTargetConfig added in v0.3.0

func (sc *StarrocksConfig) GetOutputTargetConfig() interface{}

func (*StarrocksConfig) NewOutputTargetConfig added in v0.3.0

func (sc *StarrocksConfig) NewOutputTargetConfig(config map[string]interface{})

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