package jobs import ( priorityqueue "github.com/spiral/roadrunner/v2/pkg/priority_queue" "github.com/spiral/roadrunner/v2/plugins/jobs/pipeline" "github.com/spiral/roadrunner/v2/plugins/jobs/structs" ) // Consumer todo naming type Consumer interface { Push(job *structs.Job) error Register(pipeline *pipeline.Pipeline) error Run(pipeline *pipeline.Pipeline) error Stop() error // List of the pipelines List() []string Pause(pipeline string) Resume(pipeline string) } type Constructor interface { JobsConstruct(configKey string, queue priorityqueue.Queue) (Consumer, error) FromPipeline(pipe *pipeline.Pipeline, queue priorityqueue.Queue) (Consumer, error) }