util

package
v0.0.0-...-fb4d9db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectBestNode

func SelectBestNode(nodeScores map[int][]*api.NodeInfo) []*api.NodeInfo

Types

type PriorityQueue

type PriorityQueue struct {
	// contains filtered or unexported fields
}

func NewPriorityQueue

func NewPriorityQueue(lessFn api.LessFn) *PriorityQueue

func (*PriorityQueue) Empty

func (q *PriorityQueue) Empty() bool

func (*PriorityQueue) Len

func (q *PriorityQueue) Len() int

func (*PriorityQueue) Pop

func (q *PriorityQueue) Pop() interface{}

func (*PriorityQueue) Push

func (q *PriorityQueue) Push(it interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL