ikgo

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKgoOptions

func BuildKgoOptions(cfg *config.Config, tp *sdktrace.TracerProvider, checker *health.Checker) []kgo.Opt

BuildKgoOptions builds the options for the franz-go Kafka client.

Types

type Producer

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

Producer wraps a kgo.Client to provide a simple interface for producing messages.

func NewProducer

func NewProducer(client *kgo.Client) *Producer

NewProducer creates a new Producer.

func (*Producer) Produce

func (p *Producer) Produce(ctx context.Context, rec *kgo.Record, promise func(*kgo.Record, error))

Produce produces a single record to the given topic and returns.

func (*Producer) ProduceSync

func (p *Producer) ProduceSync(ctx context.Context, rec *kgo.Record)

Jump to

Keyboard shortcuts

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