myKafka

package
v0.0.0-...-dd3d275 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Address []string

Functions

func CreateAsyncProducer

func CreateAsyncProducer(idempotent bool) (sarama.AsyncProducer, error)

func CreateProducer

func CreateProducer(idempotent bool) (sarama.SyncProducer, error)

创建生产者

func SendSyncMessage

func SendSyncMessage(topic, key, value, headers, metadata string, offset int64, partition int32, idempotent bool) (partitionResult int32, offsetResult int64, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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