queue

package
v0.0.0-...-0e94699 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueInterface

type QueueInterface interface {

	// IsConnected 确认连接
	IsConnected(ctx context.Context) bool

	// ProduceMessage 生产消息
	ProduceMessage(ctx context.Context, job *model.Job) error

	// ConsumeMessage 消费消息
	ConsumeMessage(ctx context.Context) (*model.Job, error)

	// QueueLength 获取队列长度
	QueueLength(ctx context.Context) (int, error)

	// Close 关闭队列连接
	Close(ctx context.Context) error
}

func LoadQueueDriver

func LoadQueueDriver(config *rcconfig.Queue) (queue QueueInterface, err error)

Directories

Path Synopsis
driver

Jump to

Keyboard shortcuts

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