kafka

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddService

func AddService(config service.Config)

func BatchMessages added in v0.3.5

func BatchMessages(values <-chan kafka.Message, maxItems int, maxTimeout time.Duration) chan []kafka.Message

func Handle

func Handle(messages <-chan kafka.Message) <-chan kafka.Message

func NewConsumer

func NewConsumer(kafkaURL, topic, groupID string, done context.Context) <-chan kafka.Message

func NewProducer

func NewProducer(kafkaURL, topic string, in <-chan kafka.Message)

func Start

func Start(done context.Context)

func Writer added in v0.3.5

func Writer(kafkaURL, topic string) *kafka.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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