EnqueueOpts
Overview
EnqueueOpts configures task enqueue behavior.
Part of the queue package — Node.js analog: bull.
EnqueueOpts is a type exported by gox. Methods on this type are documented separately.
Signature
go
type EnqueueOpts struct {
MaxRetry int
Queue string
}Compare: Node.js · Standard Go · gox
js
// Typical bull pattern in Node.jsgo
// hibiken/asynq client + workergo
import "github.com/sahilkhaire/gox/queue"
opts := &queue.EnqueueOpts{MaxRetry: 3, Queue: "default"}Example
go
import "github.com/sahilkhaire/gox/queue"
opts := &queue.EnqueueOpts{MaxRetry: 3, Queue: "default"}Tips
Browse methods on this type in the sidebar for handler-style APIs and options structs.
Standard library alternative
gox wraps the Go standard library or a trusted dependency with Node-familiar naming. You can use the underlying library directly — see the package overview for escape hatches.