diff options
Diffstat (limited to 'plugins/jobs/interface.go')
-rw-r--r-- | plugins/jobs/interface.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/jobs/interface.go b/plugins/jobs/interface.go index bb0e8c50..a0aed50b 100644 --- a/plugins/jobs/interface.go +++ b/plugins/jobs/interface.go @@ -11,9 +11,16 @@ type Consumer interface { Push(*pipeline.Pipeline, *structs.Job) (string, error) Stat() Consume(*pipeline.Pipeline) - Register(*pipeline.Pipeline) + Register(*pipeline.Pipeline) error } type Broker interface { InitJobBroker(queue priorityqueue.Queue) (Consumer, error) } + +type Item interface { + ID() string + Ask() + Nack() + Payload() []byte +} |