Documentation ¶ Index ¶ type Item type Queue Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type 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) } Item represents binary heap item type Queue ¶ type Queue interface { Insert(item Item) ExtractMin() Item Len() uint64 } Source Files ¶ View all Source files interface.go Click to show internal directories. Click to hide internal directories.