output

package
v0.0.0-...-1665615 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaProducer

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

A KafkaProducer encapsulates a connection to a Kafka cluster.

func NewKafkaProducer

func NewKafkaProducer(brokers []string, topic string, bufferTime, bufferBytes, batchSz int) (*KafkaProducer, error)

NewKafkaProducer returns an initialized KafkaProducer.

func (*KafkaProducer) Close

func (k *KafkaProducer) Close() error

Close closes the producer.

func (*KafkaProducer) Statistics

func (k *KafkaProducer) Statistics() (metrics.Registry, error)

Statistics returns an object storing statistics, which supports JSON marshalling.

func (*KafkaProducer) Write

func (k *KafkaProducer) Write(s string)

Jump to

Keyboard shortcuts

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