summaryrefslogtreecommitdiff
path: root/pkg/priorityqueue/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/priorityqueue/interface.go')
-rw-r--r--pkg/priorityqueue/interface.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/priorityqueue/interface.go b/pkg/priorityqueue/interface.go
new file mode 100644
index 00000000..7ac2e449
--- /dev/null
+++ b/pkg/priorityqueue/interface.go
@@ -0,0 +1,15 @@
+package priorityqueue
+
+type Queue interface {
+ Insert(item Item)
+ GetMax() Item
+}
+
+type Item interface {
+ ID() *string
+ Priority() *uint64
+ Body() []byte
+ Context() []byte
+ Ack()
+ Nack()
+}