kafka

package
v0.0.0-...-64b8ef3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Compression_NONE = "none"
	Compression_ZLIB = "zlib"
	Compression_GZIP = "gzip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Encoder        string `toml:"encoder"`
	BrokerList     string `toml:"broker_list"`
	Topic          string `toml:"topic"`
	Partition      int32  `toml:"partition"`
	MaxPayloadSize int    `toml:"max_payload_size"`
	Compression    string `toml:"compression"`
}

type KafkaSink

type KafkaSink struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*KafkaSink) Checkpoint

func (o *KafkaSink) Checkpoint() *ckp.Checkpoint

func (*KafkaSink) Close

func (o *KafkaSink) Close() error

func (*KafkaSink) Err

func (o *KafkaSink) Err() <-chan error

func (*KafkaSink) Initialize

func (o *KafkaSink) Initialize(ctx context.Context, ckp *ckp.Checkpoint) error

func (*KafkaSink) OnBegin

func (o *KafkaSink) OnBegin(h *replication.EventHeader) error

func (*KafkaSink) OnCommit

func (o *KafkaSink) OnCommit(h *replication.EventHeader, progress prog.Progress) error

func (*KafkaSink) OnDDL

func (*KafkaSink) OnGTID

func (*KafkaSink) OnQuery

func (*KafkaSink) OnRotate

func (*KafkaSink) OnRow

func (*KafkaSink) String

func (o *KafkaSink) String() string

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
client
go

Jump to

Keyboard shortcuts

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