kafka

package
v0.0.0-...-b3f87a3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncorrectConfig = errors.New("incorrect config")

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Run()
}

func NewConsumer

func NewConsumer(
	settings Settings,
	handler Handler,
) (Consumer, error)

type Handler

type Handler interface {
	Handle(context.Context, kafka_client.Message) error
}

Handler - handle input messages

type Settings

type Settings struct {
	Brokers      []string
	Topic        string
	GroupID      string
	Timeout      time.Duration
	RetryTimeout time.Duration
	RetryCount   int8
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳