kafka

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 6 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()

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