nwaddr

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity uint8

Identity is a type of address identity It has a different package to avoid name collision

const (

	// IP is either IPv4 or IPv6
	IP Identity
	// DNS is a symbolic name
	DNS
	// HostPK is a PK of a node
	HostPK
	// HostID is numeric id of a node
	HostID
	// LocalUID is a locally unique id assigned to a node. It changes each time when node is unregistered/disconnected.
	LocalUID
)

func (Identity) IsDNS

func (a Identity) IsDNS() bool

func (Identity) IsHostID

func (a Identity) IsHostID() bool

func (Identity) IsHostPK

func (a Identity) IsHostPK() bool

func (Identity) IsIP

func (a Identity) IsIP() bool

func (Identity) IsLocalUID

func (a Identity) IsLocalUID() bool

func (Identity) IsNetCompatible

func (a Identity) IsNetCompatible() bool

IsNetCompatible is true when address is compatible with "net" package

func (Identity) IsResolved

func (a Identity) IsResolved() bool

IsResolved is true when address is resolved and represents a single endpoint

Jump to

Keyboard shortcuts

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