package
0.0.0-20210730035956-6ee08864794d
Repository: https://github.com/fletaio/fleta_v1.git
Documentation: pkg.go.dev
# 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
No description provided by the author
FillBytes reads bytes from the reader until the given bytes array is filled.
MessageToPacket returns packet of the message.
NewNode returns a Node.
NewNodeMesh returns a NodeMesh.
NewRequestTimer returns a RequestTimer.
NewTCPAsyncPeer returns a TCPAsyncPeer.
NewTCPPeer returns a TCPPeer.
NewWebsocketPeer returns a WebsocketPeer.
No description provided by the author
No description provided by the author
ReadBool reads a bool using a uint8 from the reader.
ReadBytes reads a byte array from the reader.
ReadString reads a string array from the reader.
ReadUint16 reads a uint16 number from the reader.
ReadUint32 reads a uint32 number from the reader.
ReadUint64 reads a uint64 number from the reader.
ReadUint8 reads a uint8 number from the reader.
# Variables
message types.
errors.
errors.
errors.
errors.
errors.
errors.
errors.
message types.
message types.
message types.
message types.
message types.
# Structs
BlockMessage used to send a chain block to a peer.
Node receives a block by the consensus.
NodeMesh is a mesh for networking between nodes.
PeerListMessage is a message for a peer list.
RecvMessageItem used to store recv message.
RequestMessage used to request a chain data to a peer.
RequestPeerListMessage is a request message for a peer list.
RequestTimer triggers a event when a request is expired.
SendMessageItem used to store send message.
Status represents the status of the peer.
StatusMessage used to provide the chain information to a peer.
TCPAsyncPeer manages send and recv of the connection.
TCPPeer manages send and recv of the connection.
TransactionMessage is a message for a transaction.
TxMsgItem used to store transaction message.
WebsocketPeer manages send and recv of the connection.
# Interfaces
Handler is a interface for connection events.
RequestExpireHandler handles a request expire event.