# README
Vault SDK - Queue
The queue
package provides Vault plugins with a Priority Queue. It can be used
as an in-memory list of queue.Item
sorted by their priority
, and offers
methods to find or remove items by their key. Internally it
uses container/heap
; see Example Priority
Queue
# Functions
New initializes the internal data structures and returns a new PriorityQueue.
# Variables
ErrDuplicateItem is returned when the queue attmepts to push an item to a key that already exists.
ErrEmpty is returned for queues with no items.
# Structs
Item is something managed in the priority queue.
PriorityQueue facilitates queue of Items, providing Push, Pop, and PopByKey convenience methods.