# Packages
Package mock_netceptor is a generated GoMock package.
# Functions
BackendAllowedPeers is a modifier for AddBackend, which sets the list of peers allowed to connect.
BackendConnectionCost is a modifier for AddBackend, which sets the global connection cost.
BackendNodeCost is a modifier for AddBackend, which sets the per-node connection costs.
CreateTraceroute returns a channel which will receive a series of hops between this node and the target.
MessageConnFromNetConn returns a MessageConnection that wraps a net.Conn.
MessageConnFromWebsocketConn returns a MessageConnection that wraps a Gorilla websocket.Conn.
New constructs a new Receptor network protocol instance.
NewExternalBackend initializes a new ExternalBackend object.
No description provided by the author
No description provided by the author
NewWithConsts constructs a new Receptor network protocol instance, specifying operational constants.
ParseFirewallRules takes a slice of string describing firewall rules, and returns a slice of FirewallRuleFunc functions.
ReceptorVerifyFunc generates a function that verifies a Receptor node ID.
SendPing creates Ping by sending a single test packet and waits for a replay or error.
# Constants
ConnTypeDatagram indicates a packetconn (datagram) service listener.
ConnTypeStream indicates a conn (stream) service listener, without a user-defined TLS.
ConnTypeStreamTLS indicates the service listens on a packetconn connection, with a user-defined TLS.
ExpectedHostnameTypeDNS indicates we are expecting a DNS style hostname.
ExpectedHostnameTypeReceptor indicates we are expecting a Receptor node ID.
FirewallResultAccept accepts the message for normal processing.
FirewallResultContinue continues processing further rules (no result).
FirewallResultDrop denies the message silently, leaving the originator to time out.
FirewallResultReject denies the message, sending an unreachable message to the originator.
MsgTypeData is a normal data-containing message.
MsgTypeReject indicates a rejection (closure) of a backend connection.
MsgTypeRoute is a routing update.
MsgTypeServiceAdvertisement is an advertisement for a service.
ProblemExpiredInTransit occurs when a message's HopsToLive expires in transit.
ProblemRejected occurs when a packet is rejected by a firewall rule.
ProblemServiceUnknown occurs when a message arrives for a non-listening service.
VerifyClient indicates we are the server, verifying a client.
VerifyServer indicates we are the client, verifying a server.
# Variables
ErrTimeout is returned for an expired deadline.
KeepAliveForQuicConnections is variablized to enable testing of the timeout.
MainInstance is the global instance of Netceptor instantiated by the command-line main() function.
MaxIdleTimeoutForQuicConnections for quic connections.
# Structs
Addr represents an endpoint address on the Netceptor network.
No description provided by the author
Conn implements the net.Conn interface via the Receptor network.
ConnStatus holds information about a single connection in the Status struct.
ExternalBackend is a backend implementation for the situation when non-Receptor code is initiating connections, outside the control of a Receptor-managed accept loop.
ExternalSession implements BackendSession for external backends.
No description provided by the author
Listener implements the net.Listener interface via the Receptor network.
MessageData contains a single message packet from the network.
Netceptor is the main object of the Receptor mesh network protocol.
PacketConn implements the net.PacketConn interface via the Receptor network.
ReceptorCertNameError is the error produced when Receptor certificate name verification fails.
ServiceAdvertisement is the data associated with a service advertisement.
Status is the struct returned by Netceptor.Status().
TimeoutError is returned for an expired deadline.
TLSClientConfig stores the configuration options for a TLS client.
TLSServerConfig stores the configuration options for a TLS server.
TracerouteResult is the result of one hop of a traceroute.
UnreachableMessage is the on-the-wire data associated with an unreachable message.
UnreachableNotification includes additional information returned from SubscribeUnreachable.
WorkCommand tracks available work types and whether they verify work submissions.
# Interfaces
Backend is the interface for back-ends that the Receptor network can run over.
BackendSession is the interface for a single session of a back-end.
MessageConn is an abstract connection that sends and receives whole messages (datagrams).
No description provided by the author
NetcForPing should include all methods of Netceptor needed by the Ping function.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
ErrorFunc is a function parameter used to process errors.
ExpectedHostnameType indicates whether we are connecting to a DNS hostname or a Receptor Node ID.
FirewallResult enumerates the actions that can be taken as a result of a firewall rule.
No description provided by the author
FirewallRuleFunc is a function that takes a message and returns a firewall decision.
VerifyType indicates whether we are verifying a server or client.