types

package
v2.0.0-...-be9fe6b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 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 AddrMaybeId

type AddrMaybeId struct {
	Addr krpc.NodeAddrPort
	Id   generics.Option[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() (ret *krpc.NodeInfo)

Jump to

Keyboard shortcuts

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