k_nearest_nodes

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

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