blob: bb0e8c5039b6cd99a9567c58c837fc871fc71f21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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(*pipeline.Pipeline, *structs.Job) (string, error)
Stat()
Consume(*pipeline.Pipeline)
Register(*pipeline.Pipeline)
}
type Broker interface {
InitJobBroker(queue priorityqueue.Queue) (Consumer, error)
}
|