Documentation
¶
Index ¶
- func GetRedisQueue(diName string) queue.Queue
- type RedisQueue
- func (m *RedisQueue) AckMsg(ctx context.Context, key string, token string) (bool, error)
- func (m *RedisQueue) BatchEnqueue(ctx context.Context, key string, messages []string) (bool, error)
- func (m *RedisQueue) Dequeue(ctx context.Context, key string) (message string, tag string, token string, dequeueCount int64, err error)
- func (m *RedisQueue) Enqueue(ctx context.Context, key string, message string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisQueue ¶
GetRedisQueue 获取 RedisQueue 实例(单例模式)
Types ¶
type RedisQueue ¶
type RedisQueue struct {
// contains filtered or unexported fields
}
RedisQueue 实现了基于Redis的队列
func (*RedisQueue) BatchEnqueue ¶
BatchEnqueue 实现了 Queue 接口的 BatchEnqueue 方法
Click to show internal directories.
Click to hide internal directories.