queue

package
v0.0.0-...-7429660 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

此目录下的文件是过时的,请不要使用这些文件中的接口

Documentation

Overview

这个package已经过时了, 新代码请不要使用这个package里面得任何api和type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueManager

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

func NewQueueManager

func NewQueueManager(qc map[string]RedisQueueConfig) *QueueManager

func (*QueueManager) Add

func (qm *QueueManager) Add(name string, q *RedisQueue)

func (*QueueManager) Get

func (qm *QueueManager) Get(name string) *RedisQueue

type RedisQueue

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

func NewRedisQueue

func NewRedisQueue(conf RedisQueueConfig) *RedisQueue

func (*RedisQueue) Do

func (q *RedisQueue) Do(commandName string, args ...interface{}) (reply interface{}, err error)

func (*RedisQueue) Messages

func (q *RedisQueue) Messages(closeChan chan bool, maxQueueSize int) chan []byte

func (*RedisQueue) Send

func (q *RedisQueue) Send(bytes []byte) error

type RedisQueueConfig

type RedisQueueConfig struct {
	Addr           string `json:"addr"`
	Password       string `json:"password"`
	QueueName      string `json:"queue_name"`
	QueueBlock     int    `json:"queue_block"`
	ConnectTimeout int    `json:"connect_timeout"`
}

Jump to

Keyboard shortcuts

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