kafka

package
v0.0.0-...-d002785 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Addresses = flag.String("kafkaaddrs", "localhost:9092", "kafka's comma-separated addresses")

Addresses is the flag for kafka's comma-separated addresses

View Source
var Topic = flag.String("kafkatopic", filepath.Base(os.Args[0]), "kafka's topic")

Topic is the flag for kafka's topic

Functions

func NewClient

func NewClient(addresses []string) (sarama.Client, error)

NewClient returns a Kafka client

Types

type Metadata

type Metadata struct {
	StartTime   time.Time
	NumMessages int
}

Metadata is used to store metadata for the sarama.ProducerMessages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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