Documentation ¶
Index ¶
- func BulkPullReqPacketToProto(bp *BulkPullReqPacket) ([]byte, error)
- func BulkPullRspPacketToProto(bp *BulkPullRspPacket) ([]byte, error)
- func BulkPushBlockToProto(bp *BulkPush) ([]byte, error)
- func ConfirmAckBlockToProto(confirmAck *ConfirmAckBlock) ([]byte, error)
- func ConfirmReqBlockToProto(confirmReq *ConfirmReqBlock) ([]byte, error)
- func FrontierReqToProto(fr *FrontierReq) ([]byte, error)
- func FrontierResponseToProto(fr *FrontierResponse) ([]byte, error)
- func PublishBlockToProto(publish *PublishBlock) ([]byte, error)
- type Bulk
- type BulkPullReqPacket
- type BulkPullRspPacket
- type BulkPush
- type ConfirmAckBlock
- type ConfirmReqBlock
- type FrontierReq
- type FrontierResponse
- type PublishBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkPullReqPacketToProto ¶
func BulkPullReqPacketToProto(bp *BulkPullReqPacket) ([]byte, error)
ToProto converts domain BulkPull into proto BulkPull
func BulkPullRspPacketToProto ¶
func BulkPullRspPacketToProto(bp *BulkPullRspPacket) ([]byte, error)
ToProto converts domain BulkPull into proto BulkPull
func BulkPushBlockToProto ¶
ToProto converts domain BulkPush into proto BulkPush
func ConfirmAckBlockToProto ¶
func ConfirmAckBlockToProto(confirmAck *ConfirmAckBlock) ([]byte, error)
ToProto converts domain ConfirmAckBlock into proto ConfirmAckBlock
func ConfirmReqBlockToProto ¶
func ConfirmReqBlockToProto(confirmReq *ConfirmReqBlock) ([]byte, error)
ToProto converts domain ConfirmReqBlock into proto ConfirmReqBlock
func FrontierReqToProto ¶
func FrontierReqToProto(fr *FrontierReq) ([]byte, error)
ToProto converts domain frontier into proto frontier
func FrontierResponseToProto ¶
func FrontierResponseToProto(fr *FrontierResponse) ([]byte, error)
ToProto converts domain FrontierResponse into proto FrontierResponse
func PublishBlockToProto ¶
func PublishBlockToProto(publish *PublishBlock) ([]byte, error)
ToProto converts domain PublishBlock into proto PublishBlock
Types ¶
type BulkPullReqPacket ¶
func BulkPullReqPacketFromProto ¶
func BulkPullReqPacketFromProto(data []byte) (*BulkPullReqPacket, error)
BulkPullPacketFromProto parse the data into BulkPull message
func NewBulkPullReqPacket ¶
func NewBulkPullReqPacket(start, end types.Hash) (packet *BulkPullReqPacket)
type BulkPullRspPacket ¶
func BulkPullRspPacketFromProto ¶
func BulkPullRspPacketFromProto(data []byte) (*BulkPullRspPacket, error)
BulkPullPacketFromProto parse the data into BulkPull message
type BulkPush ¶
func BulkPushBlockFromProto ¶
BulkPushBlockFromProto parse the data into BulkPush message
type ConfirmAckBlock ¶
type ConfirmAckBlock struct { Account types.Address Signature types.Signature Sequence uint32 Blk types.Block }
func ConfirmAckBlockFromProto ¶
func ConfirmAckBlockFromProto(data []byte) (*ConfirmAckBlock, error)
ConfirmAckBlockFromProto parse the data into ConfirmAckBlock message
type ConfirmReqBlock ¶
func ConfirmReqBlockFromProto ¶
func ConfirmReqBlockFromProto(data []byte) (*ConfirmReqBlock, error)
ConfirmReqBlockFromProto parse the data into ConfirmReqBlock message
type FrontierReq ¶
func FrontierReqFromProto ¶
func FrontierReqFromProto(data []byte) (*FrontierReq, error)
FrontierReqFromProto parse the data into frontier message
func NewFrontierReq ¶
func NewFrontierReq(addr types.Address, Age, Count uint32) (packet *FrontierReq)
type FrontierResponse ¶
func FrontierResponseFromProto ¶
func FrontierResponseFromProto(data []byte) (*FrontierResponse, error)
FrontierResponseFromProto parse the data into frontier message
func NewFrontierRsp ¶
func NewFrontierRsp(fr *types.Frontier) (packet *FrontierResponse)
type PublishBlock ¶
func PublishBlockFromProto ¶
func PublishBlockFromProto(data []byte) (*PublishBlock, error)
PublishBlockFromProto parse the data into PublishBlock message