Categorygithub.com/hack-fan/jq
modulepackage
0.5.4
Repository: https://github.com/hack-fan/jq.git
Documentation: pkg.go.dev

# README

Redis job queue

A simple job queue use redis as backend.

It just uses Redis List, not Redis Stream.

Use this for:

  • The simplest multi-publisher multi-worker model.
  • Random small processing delays are acceptable.
  • Want to know what it does.

Not for:

  • Blocked consumers
  • FanOut model
  • Strict Message Time Series

# Functions

NewQueue create a queue.

# Structs

Job is what redis stored in list.
Queue is just one queue.
No description provided by the author
WorkerOptions is optional when starting a worker.

# Interfaces

Logger can be logrus or zap sugared logger, or your own.
RedisClient is because go-redis has many kind of clients.

# Type aliases

HandlerFunc is your custom function to process job.
ReportFunc work together with worker options "Idle",custom your counter report.