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
ClienttypeClient enqueues background tasks.
EnqueueOptstypeEnqueueOpts configures task enqueue behavior.
HandlertypeHandler processes a task payload.
ServeMuxtypeServeMux routes tasks by type name.
WorkertypeWorker processes tasks from Redis.

Methods

SymbolNode.jsKindSummary
Client.NewmethodNew creates a queue client connected to redisAddr (host:port).
ServeMux.NewServeMuxmethodNewServeMux returns an empty task router.
Worker.NewWorkermethodNewWorker creates a worker that dispatches to mux.

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