driver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 2 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 interface {
	String() string
}

Config 配置

type Interface

type Interface interface {
	// QueuePublish 发送普通队列消息
	QueuePublish(messageBody string) (message.Message, error)

	// DelayQueuePublish 发送延时队列消息
	DelayQueuePublish(messageBody string, ttl int64) (message.Message, error)

	// QueueConsume 普通队列消费
	QueueConsume(consumer consumer.Handler) error

	// DelayQueueConsume 延时队列消费
	DelayQueueConsume(consumer consumer.Handler) error

	// Close 关闭连接
	Close() error
}

Interface 消息队列驱动接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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