diff options
author | Valery Piashchynski <[email protected]> | 2021-06-23 17:41:51 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-23 17:41:51 +0300 |
commit | 521aeb823bc8fa1f0a91b540cbbac96328185f51 (patch) | |
tree | 9ec5f3fba0a4aa0469dd106040142c5e6b8cf144 /plugins/jobs/interface.go | |
parent | 7fc09959619e9e400ecafcffcd63e38812f397a6 (diff) |
- Add PQ (priority_queue) mock
- Add binary heap mock
- Connect first sub-plugin (ephemeral) with root jobs plugin
Signed-off-by: Valery Piashchynski <[email protected]>
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) +} |