mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-24 14:50:40 +01:00
This commit introduces PriorityQueue, which is a general, heap based priority queue, and PriorityQueueItem which is an interface that concrete priority queue items must implement. This implementation is encapsulated, users do not need to use any other package for full functionality. PriorityQueue exports the usual public methids: Push, Pop, Top, Empty and Len. For full documentaton consult the priority_queue.go, for usage: priority_queue_test.go |
||
---|---|---|
.. | ||
gc_queue.go | ||
gc_queue_test.go | ||
go.mod | ||
go.sum | ||
priority_queue.go | ||
priority_queue_test.go | ||
queue.go | ||
queue_test.go |