Documentation ¶
Overview ¶
Package consumer implements a job executor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DequeueOpts client.DequeueOpts `json:"dequeue_opts"` Concurrency int `json:"concurrency"` ShutdownTimeout time.Duration `json:"shutdown_timeout"` }
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer manages the dequeue, execution, and acknowledgement of jobs.
type Provider ¶
Provider provides configuration to Consumers. It can be passed as an argument to New.
func WithConfig ¶
WithConfig allows custom configuration to be provided to new Consumers.
func WithLogger ¶
WithLogger allows a custom logger to be provided to new Consumers.
Click to show internal directories.
Click to hide internal directories.