kafka

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConnectionAndSubmitRecords

func CreateConnectionAndSubmitRecords(ctx context.Context) *kgo.Client

CreateConnectionAndSubmitRecords creates a connection to Kafka and submits records

func ProduceMessages

func ProduceMessages(ctx context.Context, client *kgo.Client, record []*kgo.Record) error

ProduceMessages produces messages to Kafka

func RandomString

func RandomString(n int) string

func RollbackTransaction

func RollbackTransaction(client *kgo.Client) error

RollbackTransaction rolls back a transaction

func SubmitRecords

func SubmitRecords(ctx context.Context, client *kgo.Client, kafkaRecords []*kgo.Record) error

SubmitRecords submits records to Kafka

Types

This section is empty.

Jump to

Keyboard shortcuts

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