Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
type Constructor interface { JobsConstruct(configKey string, e events.Handler, queue priorityqueue.Queue) (Consumer, error) FromPipeline(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.