broker

package
v0.0.0-...-76fd6e2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(addr string) *broker

Types

type Broker

type Broker interface {
	Consumer(topic string, groupId string) *Consumer
	Producer() *Producer
}

type Consumer

type Consumer struct {
	*kafka.Reader
}

type Producer

type Producer struct {
	*kafka.Writer
}

Jump to

Keyboard shortcuts

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