mirror

package
v0.0.0-...-077b43f Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Z1, Z2         string
	C1, C2         string
	ExcludedTopics map[string]struct{}
	TopicsOnly     map[string]struct{}
	Compress       string
	BandwidthLimit int64
	Debug          bool
	AutoCommit     bool
	ProgressStep   int64
	ShowStatus     bool
}

func DefaultConfig

func DefaultConfig() *Config

type Mirror

type Mirror struct {
	Config
	// contains filtered or unexported fields
}

Mirror maintains a replica of an existing kafka cluster.

mirror

kafka(source) ------------------> kafka(target)

topics discover
consumer balancing

target kafka auto.create.topics.enable=true

TODO * sync pub to assure no message lost * pub pool * we might add a data channel between pub and sub

func New

func New(cf *Config) *Mirror

func (*Mirror) Main

func (this *Mirror) Main() (exitCode int)

Jump to

Keyboard shortcuts

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