# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
NewDefaultDiscovery returns a new DefaultDiscovery.
NewMessage returns a new message with the given payload.
NewServer returns a new Server, initialized with the given configuration.
NewServerConfig creates a new ServerConfig struct using the main applications config.
NewTCPPeer returns a TCPPeer structure based on the given connection.
NewTCPTransport returns a new TCPTransport that will listen for new incoming peer connections.
# Constants
Valid protocol commands used to send between nodes.
Others.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
SPV protocol.
Connectivity.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Synchronization.
0x5.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Valid protocol commands used to send between nodes.
Handshaking.
Possible message flags.
CompressionMinSize is the lower bound to apply compression.
Possible message flags.
# Structs
AddressWithCapabilities represents node address with its capabilities.
DefaultDiscovery default implementation of the Discoverer interface.
Message is the complete message send between nodes.
No description provided by the author
No description provided by the author
TCPPeer represents a connected remote node in the network over TCP.
TCPTransport allows network communication over TCP.
# Interfaces
Blockqueuer is the interface for block queue.
Discoverer is an interface that is responsible for maintaining a healthy connection pool.
No description provided by the author
No description provided by the author
No description provided by the author
Transporter is an interface that allows us to abstract any form of communication between the server and its peers.
# Type aliases
CommandType represents the type of a message command.
MessageFlag represents compression level of message payload.