Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + type Heap struct + func New(keyFn KeyFunc, lessFn lessFunc) *Heap + func NewWithRecorder(keyFn KeyFunc, lessFn lessFunc, metricRecorder metrics.MetricRecorder) *Heap + func (h *Heap) Add(obj interface{}) error + func (h *Heap) AddIfNotPresent(obj interface{}) error + func (h *Heap) Delete(obj interface{}) error + func (h *Heap) Get(obj interface{}) (interface{}, bool, error) + func (h *Heap) GetByKey(key string) (interface{}, bool, error) + func (h *Heap) Len() int + func (h *Heap) List() []interface{} + func (h *Heap) Peek() interface{} + func (h *Heap) Pop() (interface{}, error) + func (h *Heap) Update(obj interface{}) error + type KeyFunc func(obj interface{}) (string, error)