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

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