package
1.3.2
Repository: https://github.com/seeleteam/go-seele.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
* * @file * @copyright defined in go-seele/LICENSE */.

# Functions

NewNodeSet creates new nodeSet.
NewPeer creates and returns a new peer.
NewPeerSet returns peerSet pointer.
NewServer initialize a server.
SendMessage send message to peer.

# Constants

nodeSet is thread safe collection, contains all active nodes, weather it is connected or not.

# Structs

Cap is the structure of a peer capability.
Config is the Configuration of p2p.
Message exposed for high level layer to receive.
Peer represents a connected remote node.
PeerInfo represents a short summary of a connected peer.
Protocol base class for high level transfer protocol.
ProtoHandShake handshake message for two peer to exchange base information TODO add public key or other information for encryption?.
Server manages all p2p peer connections.

# Interfaces

MsgReader interface.
MsgReadWriter provides reading and writing of encoded messages.
MsgWriter interface.

# Type aliases

PeerInfos array of PeerInfo for sort alphabetically by node identifier.