types

package
v2.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MPL-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrMaybeId

type AddrMaybeId struct {
	Addr krpc.NodeAddr
	Id   *int160.T
}

func AddrMaybeIdSliceFromNodeInfoSlice

func AddrMaybeIdSliceFromNodeInfoSlice(nis []krpc.NodeInfo) (ret []AddrMaybeId)

func (AddrMaybeId) CloserThan

func (l AddrMaybeId) CloserThan(r AddrMaybeId, target int160.T) bool

func (*AddrMaybeId) FromNodeInfo

func (me *AddrMaybeId) FromNodeInfo(ni krpc.NodeInfo)

func (AddrMaybeId) String

func (me AddrMaybeId) String() string

func (AddrMaybeId) TryIntoNodeInfo

func (me AddrMaybeId) TryIntoNodeInfo() *krpc.NodeInfo

Jump to

Keyboard shortcuts

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