output

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteColumn = "_delete_sign_"
View Source
var DeleteCondition = fmt.Sprintf("%s=1", DeleteColumn)

Functions

This section is empty.

Types

type Doris added in v0.3.0

type Doris struct {
	*config.DorisConfig
	// contains filtered or unexported fields
}

func (*Doris) AddRule added in v0.3.0

func (ds *Doris) AddRule(config map[string]interface{}) error

func (*Doris) Close added in v0.3.0

func (ds *Doris) Close()

func (*Doris) DeleteRule added in v0.3.0

func (ds *Doris) DeleteRule(config map[string]interface{}) error

func (*Doris) Execute added in v0.3.0

func (ds *Doris) Execute(msgs []*msg.Msg, table *Table) error

func (*Doris) ExecuteSQL added in v0.3.1

func (ds *Doris) ExecuteSQL(cmd string, args ...interface{}) (rr *mysql.Result, err error)

func (*Doris) GetRules added in v0.3.0

func (ds *Doris) GetRules() interface{}

func (*Doris) GetTable added in v0.3.0

func (ds *Doris) GetTable(db string, table string) (*Table, error)

func (*Doris) NewOutput added in v0.3.0

func (ds *Doris) NewOutput(outputConfig interface{})

func (*Doris) StartMetrics added in v0.3.0

func (ds *Doris) StartMetrics()

func (*Doris) StartOutput added in v0.3.0

func (ds *Doris) StartOutput(outputChan *channel.OutputChannel, rulesMap map[string]interface{})

type Plugin added in v0.3.0

type Plugin interface {
	NewOutput(config interface{})
	StartOutput(outputChan *channel.OutputChannel, rulesMap map[string]interface{})
	Execute(msgs []*msg.Msg, tableObj *Table) error
	Close()
	AddRule(map[string]interface{}) error
	DeleteRule(map[string]interface{}) error
	GetRules() interface{}
}

type Starrocks

type Starrocks struct {
	*config.StarrocksConfig
	// contains filtered or unexported fields
}

func (*Starrocks) AddRule added in v0.3.0

func (sr *Starrocks) AddRule(config map[string]interface{}) error

func (*Starrocks) Close added in v0.3.0

func (sr *Starrocks) Close()

func (*Starrocks) DeleteRule added in v0.3.0

func (sr *Starrocks) DeleteRule(config map[string]interface{}) error

func (*Starrocks) Execute

func (sr *Starrocks) Execute(msgs []*msg.Msg, table *Table) error

func (*Starrocks) ExecuteSQL added in v0.3.1

func (sr *Starrocks) ExecuteSQL(cmd string, args ...interface{}) (rr *mysql.Result, err error)

func (*Starrocks) GetRules added in v0.3.0

func (sr *Starrocks) GetRules() interface{}

func (*Starrocks) GetTable added in v0.3.0

func (sr *Starrocks) GetTable(db string, table string) (*Table, error)

func (*Starrocks) NewOutput added in v0.3.0

func (sr *Starrocks) NewOutput(outputConfig interface{})

func (*Starrocks) StartMetrics added in v0.3.0

func (sr *Starrocks) StartMetrics()

func (*Starrocks) StartOutput added in v0.3.0

func (sr *Starrocks) StartOutput(outputChan *channel.OutputChannel, rulesMap map[string]interface{})

type Table added in v0.3.0

type Table struct {
	Schema  string
	Name    string
	Columns []string
}

type TableColumn added in v0.3.0

type TableColumn struct {
	Name string
}

Jump to

Keyboard shortcuts

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