summaryrefslogtreecommitdiff
path: root/priority_queue/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'priority_queue/interface.go')
-rw-r--r--priority_queue/interface.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/priority_queue/interface.go b/priority_queue/interface.go
deleted file mode 100644
index 42510f96..00000000
--- a/priority_queue/interface.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package priorityqueue
-
-type Queue interface {
- Insert(item Item)
- ExtractMin() Item
- Len() uint64
-}
-
-// Item represents binary heap item
-type Item interface {
- // ID is a unique item identifier
- ID() string
-
- // Priority returns the Item's priority to sort
- Priority() int64
-
- // Body is the Item payload
- Body() []byte
-
- // Context is the Item meta information
- Context() ([]byte, error)
-}