kafka

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProducer

func GetProducer() (sarama.SyncProducer, error)

func Refresh

func Refresh()

刷新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