package
0.0.0-20241016205951-86a77db8f642
Repository: https://github.com/ghjm/connectopus.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewHostOnlySubnet creates a subnet containing only a single IP address (ie, a /32 for IPv4 or a /128 for IPv6).
NewSubnet creates a subnet from an address and mask, masking the host bits of the address.
No description provided by the author
ParseCIDR parses an IP and subnet in CIDR notation.
ParseIP parses a human-readable address and returns an IP.
RandomSubnet returns a subnet with an address starting with keepBits bits of IP and random for the rest of prefixBits.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

InitMsg is a message type sent at connection initialization time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OOBMessage is an out-of-band message.
RoutingUpdate is a message type carrying routing information.
SessionStatus represents the status of a single session.
Status is returned by netopus.Status().

# Interfaces

ConfigUpdater is a service that can update configurations.
ExternalRouter is a device that can accept and send packets to external routes.
NameService is a service that can map names to IP addresses.
Netopus is the aggregate interface providing all the functionality of a netopus instance.
No description provided by the author

# Type aliases

IP represents an IP address (IPv4 or IPv6).
Mask represents a netmask (IPv4 or IPv6).
Msg is the type of a single Netopus protocol datagram.
MsgType enumerates the types of Netopus protocol messages.
No description provided by the author
RoutingConns stores the known connections and costs directly connected to a node.
RoutingNodes stores the known connection information for a network of nodes.
RoutingPolicy is a routing table giving the next hop for a list of subnets.
Subnet represents an IP subnet (IPv4 or IPv6).