diff options
Diffstat (limited to 'plugins/jobs/interface.go')
-rw-r--r-- | plugins/jobs/interface.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jobs/interface.go b/plugins/jobs/interface.go index b4862038..bb0e8c50 100644 --- a/plugins/jobs/interface.go +++ b/plugins/jobs/interface.go @@ -1,6 +1,7 @@ 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" ) @@ -12,3 +13,7 @@ type Consumer interface { Consume(*pipeline.Pipeline) Register(*pipeline.Pipeline) } + +type Broker interface { + InitJobBroker(queue priorityqueue.Queue) (Consumer, error) +} |