consume

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardIndexKafkaConsume

func ForwardIndexKafkaConsume(ctx context.Context, topic, group, assignor string) (err error)

ForwardIndexKafkaConsume 正排索引的消费建立

func TrieTreeKafkaConsume

func TrieTreeKafkaConsume(ctx context.Context, topic, group, assignor string) (err error)

TrieTreeKafkaConsume token词的消费建立

Types

type ForwardIndexConsumer

type ForwardIndexConsumer struct {
	Ready chan bool
}

Consumer Sarama消费者群体的消费者

func (*ForwardIndexConsumer) Cleanup

Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited

func (*ForwardIndexConsumer) ConsumeClaim

func (consumer *ForwardIndexConsumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

ConsumeClaim 必须启动 ConsumerGroupClaim 的 Messages() 消费者循环。 一旦 Messages() 通道关闭,处理程序必须完成其处理循环并退出。

func (*ForwardIndexConsumer) Setup

Setup is run at the beginning of a new session, before ConsumeClaim

type TrieTreeConsumer

type TrieTreeConsumer struct {
	Ready chan bool
}

TrieTreeConsumer Sarama消费者群体的消费者

func (*TrieTreeConsumer) Cleanup

Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited

func (*TrieTreeConsumer) ConsumeClaim

func (consumer *TrieTreeConsumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

ConsumeClaim 必须启动 ConsumerGroupClaim 的 Messages() 消费者循环。 一旦 Messages() 通道关闭,处理程序必须完成其处理循环并退出。

func (*TrieTreeConsumer) Setup

Setup is run at the beginning of a new session, before ConsumeClaim

Jump to

Keyboard shortcuts

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