output

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQMessage

type MQMessage struct {
	Schema      string                 `json:"schema"`
	Table       string                 `json:"table"`
	Operation   string                 `json:"operation"`
	Data        map[string]interface{} `json:"data"`
	OperateTime int64                  `json:"operateTime"`
}

type Output

type Output interface {
	// Handle row data
	Write(wal ...*model.WalData) error
	Close()
}

Output for write wal data

func NewOutput

func NewOutput(sub *conf.Subscribe) (Output, error)

NewOutput create new output

Jump to

Keyboard shortcuts

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