kafka

package
v0.0.0-...-8b4ae58 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

Consumer represent a kafka transport consumer.

func NewConsumer

func NewConsumer(creator repository.Creator, tracer tracing.Tracer) (Consumer, error)

NewConsumer returns a new consumer.

func (Consumer) Cleanup

func (Consumer) ConsumeClaim

func (c Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (Consumer) ReceivedMessage

func (c Consumer) ReceivedMessage(message *sarama.ConsumerMessage) error

ReceivedMessage contains logic for creating a todo.

func (Consumer) Setup

Jump to

Keyboard shortcuts

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