kafka

package
v0.0.0-...-2d91a95 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProducer

func GetProducer() (sarama.SyncProducer, error)

func Refresh

func Refresh()

Refresh the producer

Types

type KafkaSender

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

func New

func New() *KafkaSender

func (*KafkaSender) Push

func (p *KafkaSender) Push(data map[string]interface{}) error

func (*KafkaSender) SetTopic

func (p *KafkaSender) SetTopic(topic string)

Jump to

Keyboard shortcuts

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