watermillkafka

package
v0.0.0-...-28926d1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaBroker

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

func NewKafkaBroker

func NewKafkaBroker(cfg config.Kafka, logger logger.Logger) (*KafkaBroker, error)

func (*KafkaBroker) Publish

func (b *KafkaBroker) Publish(_ context.Context, topic string, data []byte) error

func (*KafkaBroker) SubscribeQueue

func (b *KafkaBroker) SubscribeQueue(
	ctx context.Context,
	topic,
	group string,
	handle func(ctx context.Context, message []byte) error,
) error

Jump to

Keyboard shortcuts

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