summaryrefslogtreecommitdiff
path: root/pkg/priorityqueue/interface.go
blob: 7ac2e449ea106e535e4a9793ce70daea7fa75df6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package priorityqueue

type Queue interface {
	Insert(item Item)
	GetMax() Item
}

type Item interface {
	ID() *string
	Priority() *uint64
	Body() []byte
	Context() []byte
	Ack()
	Nack()
}