messageQueuex

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package messageQueuex 消息队列抽象接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerIn deprecated

type ConsumerIn interface {
	ReceiveMessage(ctx context.Context, keyOrTopic []Tp) error
}

Deprecated: messageQueuex此包弃用,此方法将在未来版本中删除,请使用mqX包 ConsumerIn 消费者抽象接口

type KeyOrTopic deprecated

type KeyOrTopic struct {
	Key   []byte
	Topic string
}

Deprecated: messageQueuex此包弃用,此方法将在未来版本中删除,请使用mqX包

type ProducerIn deprecated

type ProducerIn[ProducerTyp any] interface {
	SendMessage(ctx context.Context, keyOrTopic Tp, value []byte) error
	// CloseProducer 关闭生产者Producer,请在main函数最顶层defer住生产者的Producer.Close(),优雅关闭防止goroutine泄露
	CloseProducer() error
}

Deprecated: messageQueuex此包弃用,此方法将在未来版本中删除,请使用mqX包 ProducerIn 生产者抽象接口

  • 当使用 sarama.NewSyncProducer() 创建生产者时,请使用 NewSaramaProducerStr()
  • 请在main函数最顶层defer住生产者的Producer.Close(),优雅关闭防止goroutine泄露

type Tp deprecated

type Tp KeyOrTopic

Deprecated: messageQueuex此包弃用,此方法将在未来版本中删除,请使用mqX包

Directories

Path Synopsis
saramax

Jump to

Keyboard shortcuts

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