consumer

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() *cluster.Config

Types

type FinderKafkaConsumer

type FinderKafkaConsumer struct {
	Consumer *cluster.Consumer

	Config *cluster.Config
	// contains filtered or unexported fields
}

func NewFinderKafkaConsumer

func NewFinderKafkaConsumer(brokers []string, groupId string, topics []string) (*FinderKafkaConsumer, error)

func (*FinderKafkaConsumer) Consume

func (this *FinderKafkaConsumer) Consume(errorFunc func(error), notificationsFunc func(*cluster.Notification), onMessage func(*sarama.ConsumerMessage))

启动消费

Jump to

Keyboard shortcuts

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