Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acknowledger ¶
type Acknowledger interface { // Ack - acknowledge the Item after processing Ack() error // Nack - discard the Item Nack() error // Requeue - put the message back to the queue with the optional delay Requeue(headers map[string][]string, delay int64) error // Respond to the queue Respond(payload []byte, queue string) error }
Acknowledger provides queue specific item management
type Constructor ¶
type Constructor interface { ConsumerFromConfig(configKey string, e events.Handler, queue priorityqueue.Queue) (Consumer, error) ConsumerFromPipeline(pipe *pipeline.Pipeline, e events.Handler, queue priorityqueue.Queue) (Consumer, error) }
Constructor constructs Consumer interface. Endure abstraction.
type Consumer ¶
type Consumer interface { Push(ctx context.Context, job *job.Job) error Register(ctx context.Context, pipeline *pipeline.Pipeline) error Run(ctx context.Context, pipeline *pipeline.Pipeline) error Stop(ctx context.Context) error Pause(ctx context.Context, pipeline string) Resume(ctx context.Context, pipeline string) // State provide information about driver state State(ctx context.Context) (*jobState.State, error) }
Consumer represents a single jobs driver interface
Click to show internal directories.
Click to hide internal directories.