Documentation
¶
Overview ¶
Package p2p provides P2P message types for network communication. This is the ZAP-based implementation (zero protobuf).
Index ¶
- Variables
- func Marshal(m *Message) ([]byte, error)
- func Size(m *Message) int
- func Unmarshal(data []byte, m *Message) error
- type Accepted
- type AcceptedFrontier
- type AcceptedStateSummary
- type Ancestors
- type BFT
- func (m *BFT) GetBlockProposal() *BlockProposal
- func (m *BFT) GetChainId() []byte
- func (m *BFT) GetMessage() isBFT_Message
- func (m *BFT) GetReplicationRequest() *ReplicationRequest
- func (m *BFT) GetReplicationResponse() *ReplicationResponse
- func (m *BFT) GetVote() *Vote
- func (m *BFT) Reset()
- func (m *BFT) String() string
- type BFT_BlockProposal
- type BFT_EmptyNotarization
- type BFT_EmptyVote
- type BFT_Finalization
- type BFT_FinalizeVote
- type BFT_Notarization
- type BFT_ReplicationRequest
- type BFT_ReplicationResponse
- type BFT_Vote
- type BlockProposal
- type BloomFilter
- type Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) WriteBytes(data []byte)
- func (b *Buffer) WriteBytesSlice(slices [][]byte)
- func (b *Buffer) WriteInt32(v int32)
- func (b *Buffer) WriteString(s string)
- func (b *Buffer) WriteUint8(v uint8)
- func (b *Buffer) WriteUint32(v uint32)
- func (b *Buffer) WriteUint32Slice(vals []uint32)
- func (b *Buffer) WriteUint64(v uint64)
- func (b *Buffer) WriteUint64Slice(vals []uint64)
- type Chits
- type ClaimedIpPort
- type Client
- type EmptyNotarization
- type EmptyVote
- type EngineType
- type Error
- type Get
- type GetAccepted
- type GetAcceptedFrontier
- type GetAcceptedStateSummary
- func (m *GetAcceptedStateSummary) GetChainId() []byte
- func (m *GetAcceptedStateSummary) GetDeadline() uint64
- func (m *GetAcceptedStateSummary) GetHeights() []uint64
- func (m *GetAcceptedStateSummary) GetRequestId() uint32
- func (m *GetAcceptedStateSummary) Reset()
- func (m *GetAcceptedStateSummary) String() string
- type GetAncestors
- type GetPeerList
- type GetStateSummaryFrontier
- type Gossip
- type Handshake
- func (m *Handshake) GetAllChains() bool
- func (m *Handshake) GetClient() *Client
- func (m *Handshake) GetIpAddr() []byte
- func (m *Handshake) GetIpBlsSig() []byte
- func (m *Handshake) GetIpNodeIdSig() []byte
- func (m *Handshake) GetIpPort() uint32
- func (m *Handshake) GetIpSigningTime() uint64
- func (m *Handshake) GetKnownPeers() *BloomFilter
- func (m *Handshake) GetMyTime() uint64
- func (m *Handshake) GetNetworkId() uint32
- func (m *Handshake) GetObjectedLps() []uint32
- func (m *Handshake) GetSupportedLps() []uint32
- func (m *Handshake) GetTrackedNets() [][]byte
- func (m *Handshake) Reset()
- func (m *Handshake) String() string
- type Message
- func (m *Message) GetAccepted() *Accepted
- func (m *Message) GetAcceptedFrontier() *AcceptedFrontier
- func (m *Message) GetAcceptedStateSummary() *AcceptedStateSummary
- func (m *Message) GetAncestors() *Ancestors
- func (m *Message) GetBFT() *BFT
- func (m *Message) GetChits() *Chits
- func (m *Message) GetCompressedZstd() []byte
- func (m *Message) GetError() *Error
- func (m *Message) GetGet() *Get
- func (m *Message) GetGetAccepted() *GetAccepted
- func (m *Message) GetGetAcceptedFrontier() *GetAcceptedFrontier
- func (m *Message) GetGetAcceptedStateSummary() *GetAcceptedStateSummary
- func (m *Message) GetGetAncestors() *GetAncestors
- func (m *Message) GetGetPeerList() *GetPeerList
- func (m *Message) GetGetStateSummaryFrontier() *GetStateSummaryFrontier
- func (m *Message) GetGossip() *Gossip
- func (m *Message) GetHandshake() *Handshake
- func (m *Message) GetMessage() isMessage_Message
- func (m *Message) GetPeerList() *PeerList
- func (m *Message) GetPing() *Ping
- func (m *Message) GetPong() *Pong
- func (m *Message) GetPullQuery() *PullQuery
- func (m *Message) GetPushQuery() *PushQuery
- func (m *Message) GetPut() *Put
- func (m *Message) GetRequest() *Request
- func (m *Message) GetResponse() *Response
- func (m *Message) GetStateSummaryFrontier() *StateSummaryFrontier
- func (m *Message) Reset()
- func (m *Message) String() string
- type Message_AcceptedFrontier_
- type Message_AcceptedStateSummary_
- type Message_Accepted_
- type Message_Ancestors_
- type Message_BFT
- type Message_Chits
- type Message_CompressedZstd
- type Message_Error
- type Message_Get
- type Message_GetAccepted
- type Message_GetAcceptedFrontier
- type Message_GetAcceptedStateSummary
- type Message_GetAncestors
- type Message_GetPeerList
- type Message_GetStateSummaryFrontier
- type Message_Gossip
- type Message_Handshake
- type Message_PeerList_
- type Message_Ping
- type Message_Pong
- type Message_PullQuery
- type Message_PushQuery
- type Message_Put
- type Message_Request
- type Message_Response
- type Message_StateSummaryFrontier_
- type PeerList
- type Ping
- type Pong
- type PullQuery
- func (m *PullQuery) GetChainId() []byte
- func (m *PullQuery) GetContainerId() []byte
- func (m *PullQuery) GetDeadline() uint64
- func (m *PullQuery) GetEngineType() EngineType
- func (m *PullQuery) GetRequestId() uint32
- func (m *PullQuery) GetRequestedHeight() uint64
- func (m *PullQuery) Reset()
- func (m *PullQuery) String() string
- type PushQuery
- func (m *PushQuery) GetChainId() []byte
- func (m *PushQuery) GetContainer() []byte
- func (m *PushQuery) GetDeadline() uint64
- func (m *PushQuery) GetEngineType() EngineType
- func (m *PushQuery) GetRequestId() uint32
- func (m *PushQuery) GetRequestedHeight() uint64
- func (m *PushQuery) Reset()
- func (m *PushQuery) String() string
- type Put
- type QuorumCertificate
- type Reader
- func (r *Reader) ReadBytes() ([]byte, error)
- func (r *Reader) ReadBytesSlice() ([][]byte, error)
- func (r *Reader) ReadInt32() (int32, error)
- func (r *Reader) ReadString() (string, error)
- func (r *Reader) ReadUint8() (uint8, error)
- func (r *Reader) ReadUint32() (uint32, error)
- func (r *Reader) ReadUint32Slice() ([]uint32, error)
- func (r *Reader) ReadUint64() (uint64, error)
- func (r *Reader) ReadUint64Slice() ([]uint64, error)
- type ReplicationRequest
- type ReplicationResponse
- type Request
- type Response
- type StateSummaryFrontier
- type SubnetUptime
- type Vote
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidMessage = errors.New("invalid wire message") ErrUnknownTag = errors.New("unknown message tag") )
Functions ¶
Types ¶
type Accepted ¶
Accepted message
func (*Accepted) GetChainId ¶
func (*Accepted) GetContainerIds ¶
func (*Accepted) GetRequestId ¶
type AcceptedFrontier ¶
AcceptedFrontier message
func (*AcceptedFrontier) GetChainId ¶
func (m *AcceptedFrontier) GetChainId() []byte
func (*AcceptedFrontier) GetContainerId ¶
func (m *AcceptedFrontier) GetContainerId() []byte
func (*AcceptedFrontier) GetRequestId ¶
func (m *AcceptedFrontier) GetRequestId() uint32
func (*AcceptedFrontier) Reset ¶
func (m *AcceptedFrontier) Reset()
func (*AcceptedFrontier) String ¶
func (m *AcceptedFrontier) String() string
type AcceptedStateSummary ¶
AcceptedStateSummary message
func (*AcceptedStateSummary) GetChainId ¶
func (m *AcceptedStateSummary) GetChainId() []byte
func (*AcceptedStateSummary) GetRequestId ¶
func (m *AcceptedStateSummary) GetRequestId() uint32
func (*AcceptedStateSummary) GetSummaryIds ¶
func (m *AcceptedStateSummary) GetSummaryIds() [][]byte
func (*AcceptedStateSummary) Reset ¶
func (m *AcceptedStateSummary) Reset()
func (*AcceptedStateSummary) String ¶
func (m *AcceptedStateSummary) String() string
type Ancestors ¶
Ancestors message
func (*Ancestors) GetChainId ¶
func (*Ancestors) GetContainers ¶
func (*Ancestors) GetRequestId ¶
type BFT ¶
type BFT struct {
ChainId []byte
Message isBFT_Message
}
BFT message
func (*BFT) GetBlockProposal ¶
func (m *BFT) GetBlockProposal() *BlockProposal
func (*BFT) GetChainId ¶
func (*BFT) GetMessage ¶
func (m *BFT) GetMessage() isBFT_Message
func (*BFT) GetReplicationRequest ¶
func (m *BFT) GetReplicationRequest() *ReplicationRequest
func (*BFT) GetReplicationResponse ¶
func (m *BFT) GetReplicationResponse() *ReplicationResponse
type BFT_BlockProposal ¶
type BFT_BlockProposal struct{ BlockProposal *BlockProposal }
type BFT_EmptyNotarization ¶
type BFT_EmptyNotarization struct{ EmptyNotarization *EmptyNotarization }
type BFT_EmptyVote ¶
type BFT_EmptyVote struct{ EmptyVote *EmptyVote }
type BFT_Finalization ¶
type BFT_Finalization struct{ Finalization *QuorumCertificate }
type BFT_FinalizeVote ¶
type BFT_FinalizeVote struct{ FinalizeVote *Vote }
type BFT_Notarization ¶
type BFT_Notarization struct{ Notarization *QuorumCertificate }
type BFT_ReplicationRequest ¶
type BFT_ReplicationRequest struct{ ReplicationRequest *ReplicationRequest }
type BFT_ReplicationResponse ¶
type BFT_ReplicationResponse struct{ ReplicationResponse *ReplicationResponse }
type BlockProposal ¶
type BlockProposal struct {
Block []byte
}
BlockProposal message
func (*BlockProposal) GetBlock ¶
func (m *BlockProposal) GetBlock() []byte
type BloomFilter ¶
BloomFilter for peer discovery
func (*BloomFilter) GetFilter ¶
func (m *BloomFilter) GetFilter() []byte
func (*BloomFilter) GetSalt ¶
func (m *BloomFilter) GetSalt() []byte
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer for zero-copy encoding
func (*Buffer) WriteBytes ¶
func (*Buffer) WriteBytesSlice ¶
func (*Buffer) WriteInt32 ¶
func (*Buffer) WriteString ¶
func (*Buffer) WriteUint8 ¶
func (*Buffer) WriteUint32 ¶
func (*Buffer) WriteUint32Slice ¶
func (*Buffer) WriteUint64 ¶
func (*Buffer) WriteUint64Slice ¶
type Chits ¶
type Chits struct {
ChainId []byte
RequestId uint32
PreferredId []byte
PreferredIdAtHeight []byte
AcceptedId []byte
AcceptedHeight uint64
}
Chits message
func (*Chits) GetAcceptedHeight ¶
func (*Chits) GetAcceptedId ¶
func (*Chits) GetChainId ¶
func (*Chits) GetPreferredId ¶
func (*Chits) GetPreferredIdAtHeight ¶
func (*Chits) GetRequestId ¶
type ClaimedIpPort ¶
type ClaimedIpPort struct {
X509Certificate []byte
IpAddr []byte
IpPort uint32
Timestamp uint64
Signature []byte
TxId []byte
}
ClaimedIpPort in peer list
func (*ClaimedIpPort) GetIpAddr ¶
func (m *ClaimedIpPort) GetIpAddr() []byte
func (*ClaimedIpPort) GetIpPort ¶
func (m *ClaimedIpPort) GetIpPort() uint32
func (*ClaimedIpPort) GetSignature ¶
func (m *ClaimedIpPort) GetSignature() []byte
func (*ClaimedIpPort) GetTimestamp ¶
func (m *ClaimedIpPort) GetTimestamp() uint64
func (*ClaimedIpPort) GetTxId ¶
func (m *ClaimedIpPort) GetTxId() []byte
func (*ClaimedIpPort) GetX509Certificate ¶
func (m *ClaimedIpPort) GetX509Certificate() []byte
type EmptyNotarization ¶
EmptyNotarization message
type EngineType ¶
type EngineType int32
EngineType represents the consensus engine type
const ( EngineType_ENGINE_TYPE_UNSPECIFIED EngineType = 0 EngineType_ENGINE_TYPE_CHAIN EngineType = 1 EngineType_ENGINE_TYPE_DAG EngineType = 2 )
func (EngineType) String ¶
func (e EngineType) String() string
type Error ¶
Error message (application-level error)
func (*Error) GetChainId ¶
func (*Error) GetErrorCode ¶
func (*Error) GetErrorMessage ¶
func (*Error) GetRequestId ¶
type Get ¶
type Get struct {
ChainId []byte
RequestId uint32
Deadline uint64
ContainerId []byte
EngineType EngineType
}
Get message
func (*Get) GetChainId ¶
func (*Get) GetContainerId ¶
func (*Get) GetDeadline ¶
func (*Get) GetEngineType ¶
func (m *Get) GetEngineType() EngineType
func (*Get) GetRequestId ¶
type GetAccepted ¶
type GetAccepted struct {
ChainId []byte
RequestId uint32
Deadline uint64
ContainerIds [][]byte
EngineType EngineType
}
GetAccepted message
func (*GetAccepted) GetChainId ¶
func (m *GetAccepted) GetChainId() []byte
func (*GetAccepted) GetContainerIds ¶
func (m *GetAccepted) GetContainerIds() [][]byte
func (*GetAccepted) GetDeadline ¶
func (m *GetAccepted) GetDeadline() uint64
func (*GetAccepted) GetEngineType ¶
func (m *GetAccepted) GetEngineType() EngineType
func (*GetAccepted) GetRequestId ¶
func (m *GetAccepted) GetRequestId() uint32
func (*GetAccepted) Reset ¶
func (m *GetAccepted) Reset()
func (*GetAccepted) String ¶
func (m *GetAccepted) String() string
type GetAcceptedFrontier ¶
type GetAcceptedFrontier struct {
ChainId []byte
RequestId uint32
Deadline uint64
EngineType EngineType
}
GetAcceptedFrontier message
func (*GetAcceptedFrontier) GetChainId ¶
func (m *GetAcceptedFrontier) GetChainId() []byte
func (*GetAcceptedFrontier) GetDeadline ¶
func (m *GetAcceptedFrontier) GetDeadline() uint64
func (*GetAcceptedFrontier) GetEngineType ¶
func (m *GetAcceptedFrontier) GetEngineType() EngineType
func (*GetAcceptedFrontier) GetRequestId ¶
func (m *GetAcceptedFrontier) GetRequestId() uint32
func (*GetAcceptedFrontier) Reset ¶
func (m *GetAcceptedFrontier) Reset()
func (*GetAcceptedFrontier) String ¶
func (m *GetAcceptedFrontier) String() string
type GetAcceptedStateSummary ¶
type GetAcceptedStateSummary struct {
ChainId []byte
RequestId uint32
Deadline uint64
Heights []uint64
}
GetAcceptedStateSummary message
func (*GetAcceptedStateSummary) GetChainId ¶
func (m *GetAcceptedStateSummary) GetChainId() []byte
func (*GetAcceptedStateSummary) GetDeadline ¶
func (m *GetAcceptedStateSummary) GetDeadline() uint64
func (*GetAcceptedStateSummary) GetHeights ¶
func (m *GetAcceptedStateSummary) GetHeights() []uint64
func (*GetAcceptedStateSummary) GetRequestId ¶
func (m *GetAcceptedStateSummary) GetRequestId() uint32
func (*GetAcceptedStateSummary) Reset ¶
func (m *GetAcceptedStateSummary) Reset()
func (*GetAcceptedStateSummary) String ¶
func (m *GetAcceptedStateSummary) String() string
type GetAncestors ¶
type GetAncestors struct {
ChainId []byte
RequestId uint32
Deadline uint64
ContainerId []byte
EngineType EngineType
}
GetAncestors message
func (*GetAncestors) GetChainId ¶
func (m *GetAncestors) GetChainId() []byte
func (*GetAncestors) GetContainerId ¶
func (m *GetAncestors) GetContainerId() []byte
func (*GetAncestors) GetDeadline ¶
func (m *GetAncestors) GetDeadline() uint64
func (*GetAncestors) GetEngineType ¶
func (m *GetAncestors) GetEngineType() EngineType
func (*GetAncestors) GetRequestId ¶
func (m *GetAncestors) GetRequestId() uint32
func (*GetAncestors) Reset ¶
func (m *GetAncestors) Reset()
func (*GetAncestors) String ¶
func (m *GetAncestors) String() string
type GetPeerList ¶
type GetPeerList struct {
KnownPeers *BloomFilter
AllChains bool
}
GetPeerList message
func (*GetPeerList) GetAllChains ¶
func (m *GetPeerList) GetAllChains() bool
func (*GetPeerList) GetKnownPeers ¶
func (m *GetPeerList) GetKnownPeers() *BloomFilter
func (*GetPeerList) Reset ¶
func (m *GetPeerList) Reset()
func (*GetPeerList) String ¶
func (m *GetPeerList) String() string
type GetStateSummaryFrontier ¶
GetStateSummaryFrontier message
func (*GetStateSummaryFrontier) GetChainId ¶
func (m *GetStateSummaryFrontier) GetChainId() []byte
func (*GetStateSummaryFrontier) GetDeadline ¶
func (m *GetStateSummaryFrontier) GetDeadline() uint64
func (*GetStateSummaryFrontier) GetRequestId ¶
func (m *GetStateSummaryFrontier) GetRequestId() uint32
func (*GetStateSummaryFrontier) Reset ¶
func (m *GetStateSummaryFrontier) Reset()
func (*GetStateSummaryFrontier) String ¶
func (m *GetStateSummaryFrontier) String() string
type Gossip ¶
Gossip message (application-level)
func (*Gossip) GetAppBytes ¶
func (*Gossip) GetChainId ¶
type Handshake ¶
type Handshake struct {
NetworkId uint32
MyTime uint64
IpAddr []byte
IpPort uint32
IpSigningTime uint64
IpNodeIdSig []byte
TrackedNets [][]byte
Client *Client
SupportedLps []uint32
ObjectedLps []uint32
KnownPeers *BloomFilter
IpBlsSig []byte
AllChains bool
}
Handshake message
func (*Handshake) GetAllChains ¶
func (*Handshake) GetIpBlsSig ¶
func (*Handshake) GetIpNodeIdSig ¶
func (*Handshake) GetIpSigningTime ¶
func (*Handshake) GetKnownPeers ¶
func (m *Handshake) GetKnownPeers() *BloomFilter
func (*Handshake) GetNetworkId ¶
func (*Handshake) GetObjectedLps ¶
func (*Handshake) GetSupportedLps ¶
func (*Handshake) GetTrackedNets ¶
type Message ¶
type Message struct {
Message isMessage_Message
}
Message is the top-level P2P message container
func (*Message) GetAccepted ¶
func (*Message) GetAcceptedFrontier ¶
func (m *Message) GetAcceptedFrontier() *AcceptedFrontier
func (*Message) GetAcceptedStateSummary ¶
func (m *Message) GetAcceptedStateSummary() *AcceptedStateSummary
func (*Message) GetAncestors ¶
func (*Message) GetCompressedZstd ¶
func (*Message) GetGetAccepted ¶
func (m *Message) GetGetAccepted() *GetAccepted
func (*Message) GetGetAcceptedFrontier ¶
func (m *Message) GetGetAcceptedFrontier() *GetAcceptedFrontier
func (*Message) GetGetAcceptedStateSummary ¶
func (m *Message) GetGetAcceptedStateSummary() *GetAcceptedStateSummary
func (*Message) GetGetAncestors ¶
func (m *Message) GetGetAncestors() *GetAncestors
func (*Message) GetGetPeerList ¶
func (m *Message) GetGetPeerList() *GetPeerList
func (*Message) GetGetStateSummaryFrontier ¶
func (m *Message) GetGetStateSummaryFrontier() *GetStateSummaryFrontier
func (*Message) GetHandshake ¶
func (*Message) GetMessage ¶
func (m *Message) GetMessage() isMessage_Message
func (*Message) GetPeerList ¶
func (*Message) GetPullQuery ¶
func (*Message) GetPushQuery ¶
func (*Message) GetRequest ¶
func (*Message) GetResponse ¶
func (*Message) GetStateSummaryFrontier ¶
func (m *Message) GetStateSummaryFrontier() *StateSummaryFrontier
type Message_AcceptedFrontier_ ¶
type Message_AcceptedFrontier_ struct{ AcceptedFrontier_ *AcceptedFrontier }
type Message_AcceptedStateSummary_ ¶
type Message_AcceptedStateSummary_ struct{ AcceptedStateSummary_ *AcceptedStateSummary }
type Message_Accepted_ ¶
type Message_Accepted_ struct{ Accepted_ *Accepted }
type Message_Ancestors_ ¶
type Message_Ancestors_ struct{ Ancestors_ *Ancestors }
type Message_BFT ¶
type Message_BFT struct{ BFT *BFT }
type Message_Chits ¶
type Message_Chits struct{ Chits *Chits }
type Message_CompressedZstd ¶
type Message_CompressedZstd struct{ CompressedZstd []byte }
type Message_Error ¶
type Message_Error struct{ Error *Error }
type Message_Get ¶
type Message_Get struct{ Get *Get }
type Message_GetAccepted ¶
type Message_GetAccepted struct{ GetAccepted *GetAccepted }
type Message_GetAcceptedFrontier ¶
type Message_GetAcceptedFrontier struct{ GetAcceptedFrontier *GetAcceptedFrontier }
type Message_GetAcceptedStateSummary ¶
type Message_GetAcceptedStateSummary struct{ GetAcceptedStateSummary *GetAcceptedStateSummary }
type Message_GetAncestors ¶
type Message_GetAncestors struct{ GetAncestors *GetAncestors }
type Message_GetPeerList ¶
type Message_GetPeerList struct{ GetPeerList *GetPeerList }
type Message_GetStateSummaryFrontier ¶
type Message_GetStateSummaryFrontier struct{ GetStateSummaryFrontier *GetStateSummaryFrontier }
type Message_Gossip ¶
type Message_Gossip struct{ Gossip *Gossip }
type Message_Handshake ¶
type Message_Handshake struct{ Handshake *Handshake }
type Message_PeerList_ ¶
type Message_PeerList_ struct{ PeerList_ *PeerList }
type Message_Ping ¶
type Message_Ping struct{ Ping *Ping }
type Message_Pong ¶
type Message_Pong struct{ Pong *Pong }
type Message_PullQuery ¶
type Message_PullQuery struct{ PullQuery *PullQuery }
type Message_PushQuery ¶
type Message_PushQuery struct{ PushQuery *PushQuery }
type Message_Put ¶
type Message_Put struct{ Put *Put }
type Message_Request ¶
type Message_Request struct{ Request *Request }
type Message_Response ¶
type Message_Response struct{ Response *Response }
type Message_StateSummaryFrontier_ ¶
type Message_StateSummaryFrontier_ struct{ StateSummaryFrontier_ *StateSummaryFrontier }
type PeerList ¶
type PeerList struct {
ClaimedIpPorts []*ClaimedIpPort
}
PeerList message
func (*PeerList) GetClaimedIpPorts ¶
func (m *PeerList) GetClaimedIpPorts() []*ClaimedIpPort
type Ping ¶
type Ping struct {
Uptime uint32
SubnetUptimes []*SubnetUptime
}
Ping message
func (*Ping) GetSubnetUptimes ¶
func (m *Ping) GetSubnetUptimes() []*SubnetUptime
type Pong ¶
type Pong struct {
Uptime uint32
SubnetUptimes []*SubnetUptime
}
Pong message
func (*Pong) GetSubnetUptimes ¶
func (m *Pong) GetSubnetUptimes() []*SubnetUptime
type PullQuery ¶
type PullQuery struct {
ChainId []byte
RequestId uint32
Deadline uint64
ContainerId []byte
EngineType EngineType
RequestedHeight uint64
}
PullQuery message
func (*PullQuery) GetChainId ¶
func (*PullQuery) GetContainerId ¶
func (*PullQuery) GetDeadline ¶
func (*PullQuery) GetEngineType ¶
func (m *PullQuery) GetEngineType() EngineType
func (*PullQuery) GetRequestId ¶
func (*PullQuery) GetRequestedHeight ¶
type PushQuery ¶
type PushQuery struct {
ChainId []byte
RequestId uint32
Deadline uint64
Container []byte
EngineType EngineType
RequestedHeight uint64
}
PushQuery message
func (*PushQuery) GetChainId ¶
func (*PushQuery) GetContainer ¶
func (*PushQuery) GetDeadline ¶
func (*PushQuery) GetEngineType ¶
func (m *PushQuery) GetEngineType() EngineType
func (*PushQuery) GetRequestId ¶
func (*PushQuery) GetRequestedHeight ¶
type Put ¶
type Put struct {
ChainId []byte
RequestId uint32
Container []byte
EngineType EngineType
}
Put message
func (*Put) GetChainId ¶
func (*Put) GetContainer ¶
func (*Put) GetEngineType ¶
func (m *Put) GetEngineType() EngineType
func (*Put) GetRequestId ¶
type QuorumCertificate ¶
type QuorumCertificate struct {
BlockHash []byte
View uint64
Seq uint64
AggregatedSignature []byte
Signers []byte
}
QuorumCertificate message
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader for zero-copy decoding
func (*Reader) ReadBytesSlice ¶
func (*Reader) ReadString ¶
func (*Reader) ReadUint32 ¶
func (*Reader) ReadUint32Slice ¶
func (*Reader) ReadUint64 ¶
func (*Reader) ReadUint64Slice ¶
type ReplicationRequest ¶
ReplicationRequest message
func (*ReplicationRequest) GetLatestRound ¶
func (m *ReplicationRequest) GetLatestRound() uint64
func (*ReplicationRequest) GetSeqs ¶
func (m *ReplicationRequest) GetSeqs() []uint64
type ReplicationResponse ¶
type ReplicationResponse struct {
Messages [][]byte
}
ReplicationResponse message
type Request ¶
Request message (application-level)
func (*Request) GetAppBytes ¶
func (*Request) GetChainId ¶
func (*Request) GetDeadline ¶
func (*Request) GetRequestId ¶
type Response ¶
Response message (application-level)
func (*Response) GetAppBytes ¶
func (*Response) GetChainId ¶
func (*Response) GetRequestId ¶
type StateSummaryFrontier ¶
StateSummaryFrontier message
func (*StateSummaryFrontier) GetChainId ¶
func (m *StateSummaryFrontier) GetChainId() []byte
func (*StateSummaryFrontier) GetRequestId ¶
func (m *StateSummaryFrontier) GetRequestId() uint32
func (*StateSummaryFrontier) GetSummary ¶
func (m *StateSummaryFrontier) GetSummary() []byte
func (*StateSummaryFrontier) Reset ¶
func (m *StateSummaryFrontier) Reset()
func (*StateSummaryFrontier) String ¶
func (m *StateSummaryFrontier) String() string
type SubnetUptime ¶
SubnetUptime for ping/pong
func (*SubnetUptime) GetSubnetId ¶
func (m *SubnetUptime) GetSubnetId() []byte
func (*SubnetUptime) GetUptime ¶
func (m *SubnetUptime) GetUptime() uint32