consumer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaConsumers

func NewKafkaConsumers(topic, group string, brokers []string, number uint32) map[string]*Consumer

Types

type Consumer

type Consumer struct {
	*cluster.Consumer
}

func (*Consumer) Listen

func (c *Consumer) Listen(deal DealHandler)

type DealHandler

type DealHandler func(msg *sarama.ConsumerMessage) error

type Process

type Process interface {
	Deal(msg *sarama.ConsumerMessage) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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