hostinfo

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addrs

type Addrs struct {
	IPv4 []byte `capnp:"ipv4"`
	IPv6 []byte `capnp:"ipv6"`
}

Addrs is an address union for use in capnp serializations.

type Host

type Host struct {
	Addrs Addrs  `capnp:"addrs"`
	Port  uint16 `capnp:"port"`
}

Host contains connectivity information for a host.

func FromHostAddr

func FromHostAddr(host addr.HostAddr, port uint16) *Host

func FromTopoAddr

func FromTopoAddr(topoAddr topology.TopoAddr) Host

func FromTopoBRAddr

func FromTopoBRAddr(topoBRAddr topology.TopoBRAddr) Host

func (*Host) Copy

func (h *Host) Copy() *Host

func (*Host) Host

func (h *Host) Host() addr.HostAddr

func (*Host) Overlay

func (h *Host) Overlay() (*overlay.OverlayAddr, error)

func (*Host) String

func (h *Host) String() string

Jump to

Keyboard shortcuts

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