consumer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kafka mq.KafkaConfig
}

Config 消费者配置

type Consumer

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

Consumer 异步任务消费者 TODO: 重新设计用于 Zep 风格的异步处理(如 Community 检测等)

func NewConsumer

func NewConsumer(memory *action.Memory, cfg Config) (*Consumer, error)

NewConsumer 创建消费者

func (*Consumer) Start

func (c *Consumer) Start(ctx context.Context) error

Start 启动所有消费者

func (*Consumer) Stop

func (c *Consumer) Stop() error

Stop 停止所有消费者

Jump to

Keyboard shortcuts

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