k_nearest_nodes

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MPL-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elem

type Elem struct {
	Key
	Data interface{}
}

type Key

type Key = krpc.NodeInfo

type Type

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

func New

func New(target int160.T, k int) Type

func (Type) Farthest

func (me Type) Farthest() (elem Elem)

func (Type) Full

func (me Type) Full() bool

func (Type) Len

func (me Type) Len() int

func (Type) Push

func (me Type) Push(elem Elem) Type

func (*Type) Range

func (me *Type) Range(f func(Elem))

Jump to

Keyboard shortcuts

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