Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayQueue ¶
type DelayQueue interface { Producer(msg string, expireTime int64) error Consumer(dealFunc DealFunc) }
func New ¶
func New(config Config) (queue DelayQueue, err error)
type QueueByRedis ¶
type QueueByRedis struct {
// contains filtered or unexported fields
}
func (*QueueByRedis) Consumer ¶
func (q *QueueByRedis) Consumer(dealFunc DealFunc)
func (*QueueByRedis) Producer ¶
func (q *QueueByRedis) Producer(msg string, expireTime int64) (err error)
func (*QueueByRedis) Stop ¶
func (q *QueueByRedis) Stop()
Click to show internal directories.
Click to hide internal directories.