package
2.0.0+incompatible
Repository: https://github.com/quarkchain/goquarkchain.git
Documentation: pkg.go.dev
# Packages
Package discover implements the Node Discovery Protocol.
No description provided by the author
# Functions
DecodeQKCMsg decode byte to qkcMsg.
Encrypt encrypt Data to byte array.
ExpectMsg reads a message from r and verifies that its code and encoded RLP content match the provided values.
No description provided by the author
No description provided by the author
No description provided by the author
MsgPipe creates a message pipe.
NewPeer returns a peer for testing purposes.
NewQKCRlp new qkc rlp.
Send writes an RLP-encoded message with the given code.
SendItems writes an RLP with the given code and data elements.
# 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
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
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
p2p command.
RPCIDLength rpc length.
p2p command.
p2p command.
p2p command.
p2p command.
OPLength Op length.
PeerEventTypeAdd is the type of event emitted when a peer is added to a p2p.Server.
PeerEventTypeDrop is the type of event emitted when a peer is dropped from a p2p.Server.
PeerEventTypeMsgRecv is the type of event emitted when a message is received from a peer.
PeerEventTypeMsgSend is the type of event emitted when a message is successfully sent to a peer.
p2p command.
p2p command.
PreP2PLength preP2PLength.
RPCIDLength rpc length.
# Variables
ErrPipeClosed is returned from pipe operations after the pipe has been closed.
No description provided by the author
OPSerializerMap Op and its struct.
# Structs
Cap is the structure of a peer capability.
Config holds Server options.
GetMinorBlockHeaderListRequest get minor block header list request.
GetMinorBlockHeaderListResponse get minor block header list response.
No description provided by the author
GetMinorBlockListRequest get minor block list request.
GetMinorBlockListResponse get minor block list response.
GetPeerListRequest get peer list request.
GetPeerListResponse get peer list response.
GetRootBlockHeaderListRequest get root block header list request.
GetRootBlockHeaderListResponse get root block header list response.
No description provided by the author
GetRootBlockListRequest get root block list request.
GetRootBlockListResponse get root block list response.
HelloCmd hello cmd struct.
No description provided by the author
Msg defines the structure of a p2p message.
MsgPipeRW is an endpoint of a MsgReadWriter pipe.
NewBlockMinor new block minor.
No description provided by the author
NewTransactionList new transaction list.
NodeInfo represents a short summary of the information known about the host.
P2PeerInfo peerInfo use uint123.
Peer represents a connected remote node.
PeerEvent is an event emitted when peers are either added or dropped from a p2p.Server or when a message is sent or received on a peer connection.
PeerInfo represents a short summary of the information known about a connected peer.
with 32B message which is undefined at the moment.
Protocol represents a P2P subprotocol implementation.
QKCMsg qkc msg struct.
Server manages all peer connections.
TCPDialer implements the NodeDialer interface by using a net.Dialer to create TCP connections to nodes in the network.
Tip new minor block header list.
# Interfaces
No description provided by the author
MsgReadWriter provides reading and writing of encoded messages.
No description provided by the author
NodeDialer is used to connect to nodes in the network, typically by using an underlying net.Dialer but also using net.Pipe in tests.
# Type aliases
No description provided by the author
No description provided by the author
PeerEventType is the type of peer events emitted by a p2p.Server.