kafka

package
v0.0.0-...-3c9172d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package kafka handles publishing and subscribing with Kafka

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(
	ctx context.Context,
	logger *zap.SugaredLogger,
	topic string,
	subscriber chan string,
) (pubsub.Consumer, error)

NewConsumer returns a KAFKA consumer

func NewPublisher

func NewPublisher(
	ctx context.Context,
	cancelFn context.CancelFunc,
	logger *zap.SugaredLogger,
	topic string,
) (pubsub.Publisher, error)

NewPublisher returns a kafka publisher

Types

This section is empty.

Jump to

Keyboard shortcuts

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