kafka

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBroker

func GetBroker(bootstrapUrl string) (brokers []string, err error)

func InitTopic

func InitTopic(bootstrapUrl string, topics ...string) (err error)

Types

type Producer

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

func NewProducer

func NewProducer(ctx context.Context, config configuration.Config, topic string) (*Producer, error)

func (*Producer) Produce

func (this *Producer) Produce(key []byte, message []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳