kafka

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: GPL-3.0 Imports: 1 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
}

func InitKafka added in v0.0.2

func InitKafka(servers []string) KafkaProducer

func (*KafkaProducer) SendMesssage

func (t *KafkaProducer) SendMesssage(content []byte, topic string, keyType string) (int32, int64, error)

send message and return partition,offset

Jump to

Keyboard shortcuts

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