Documentation
¶
Overview ¶
Package redisjobqueue provides a Redis Stream backed engine.AsyncJobQueue.
It is an optional driver kept out of the engine core so that local/in-memory embedding does not pull in the go-redis dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStreamJobQueue ¶
type RedisStreamJobQueue struct {
// contains filtered or unexported fields
}
RedisStreamJobQueue implements engine.AsyncJobQueue over a Redis Stream.
func New ¶
func New(rdb *redis.Client, stream string, group string) *RedisStreamJobQueue
New creates a Redis Stream backed async job queue and ensures the group.
func (*RedisStreamJobQueue) Ack ¶
func (q *RedisStreamJobQueue) Ack(ctx context.Context, id string) error
Click to show internal directories.
Click to hide internal directories.