kafka

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Brokers      []string
	Topic        string
	RequiredAcks sarama.RequiredAcks
	BatchSize    int
	BatchTimeout time.Duration
}

type Publisher

type Publisher[T comparable] struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher[T comparable](cfg Config) (*Publisher[T], error)

func (*Publisher[T]) Close

func (p *Publisher[T]) Close() error

func (*Publisher[T]) Publish

func (p *Publisher[T]) Publish(ctx context.Context, event xoutbox.Event[T]) error

Jump to

Keyboard shortcuts

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