Skip to content
Node: bull8 APIs

queue

Package queue provides a Redis-backed task queue similar to Bull/BullMQ, backed by github.com/hibiken/asynq. Node equivalent: bull, bullmq

import "github.com/sahilkhaire/gox/queue"
## API reference

Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.

Types ​

SymbolNode.jsKindSummary
Client—typeClient enqueues background tasks.
EnqueueOpts—typeEnqueueOpts configures task enqueue behavior.
Handler—typeHandler processes a task payload.
ServeMux—typeServeMux routes tasks by type name.
Worker—typeWorker processes tasks from Redis.

Methods ​

SymbolNode.jsKindSummary
Client.New—methodNew creates a queue client connected to redisAddr (host:port).
ServeMux.NewServeMux—methodNewServeMux returns an empty task router.
Worker.NewWorker—methodNewWorker creates a worker that dispatches to mux.

MIT Licensed · Built for Node.js developers moving to Go