type ttlKeyHeap … func newTtlKeyHeap() *ttlKeyHeap { … } func (h ttlKeyHeap) Len() int { … } func (h ttlKeyHeap) Less(i, j int) bool { … } func (h ttlKeyHeap) Swap(i, j int) { … } func (h *ttlKeyHeap) Push(x interface{ … } func (h *ttlKeyHeap) Pop() interface{ … } func (h *ttlKeyHeap) top() *node { … } func (h *ttlKeyHeap) pop() *node { … } func (h *ttlKeyHeap) push(x interface{ … } func (h *ttlKeyHeap) update(n *node) { … } func (h *ttlKeyHeap) remove(n *node) { … }