Documentation ¶
Overview ¶
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Package fcradminmsg - stores all the admin messages.
Index ¶
- Constants
- func DecodeACK(data []byte) (bool, string, error)
- func DecodeCacheOfferByDigestRequest(data []byte) (string, string, error)
- func DecodeChangePeerStatusRequest(data []byte) (string, bool, bool, error)
- func DecodeGetOfferByCIDRequest(data []byte) (string, error)
- func DecodeGetOfferByCIDResponse(data []byte) ([]string, []string, []string, []int64, []uint64, error)
- func DecodeInitialisationRequest(data []byte) (string, int, string, string, string, string, string, string, string, string, ...)
- func DecodeInspectPeerRequest(data []byte) (string, error)
- func DecodeInspectPeerResponse(data []byte) (int64, bool, bool, []string, error)
- func DecodeListCIDFrequencyRequest(data []byte) (uint, uint, error)
- func DecodeListCIDFrequencyResponse(data []byte) ([]string, []int, error)
- func DecodeListFilesResponse(data []byte) ([]string, []string, []int64, []bool, []int, error)
- func DecodeListPeersResponse(data []byte) ([]string, []int64, []bool, []bool, []string, error)
- func DecodePublishOfferRequest(data []byte) ([]string, *big.Int, int64, uint64, error)
- func DecodeUploadFileStartRequest(data []byte) (string, []byte, error)
- func EncodeACK(ack bool, data string) []byte
- func EncodeCacheOfferByDigestRequest(digest string, cid string) ([]byte, error)
- func EncodeChangePeerStatusRequest(nodeID string, block bool, unblock bool) ([]byte, error)
- func EncodeGetOfferByCIDRequest(cid string) ([]byte, error)
- func EncodeGetOfferByCIDResponse(digests []string, providers []string, prices []string, expiry []int64, ...) ([]byte, error)
- func EncodeInitialisationRequest(p2pPrivKey string, p2pPort int, networkAddr string, rootPrivKey string, ...) ([]byte, error)
- func EncodeInspectPeerRequest(nodeID string) ([]byte, error)
- func EncodeInspectPeerResponse(score int64, pending bool, blocked bool, history []string) ([]byte, error)
- func EncodeListCIDFrequencyRequest(from uint, to uint) ([]byte, error)
- func EncodeListCIDFrequencyResponse(cids []string, count []int) ([]byte, error)
- func EncodeListFilesResponse(files []string, cids []string, sizes []int64, published []bool, ...) ([]byte, error)
- func EncodeListPeersResponse(peerIDs []string, peerScore []int64, peerPending []bool, peerBlocked []bool, ...) ([]byte, error)
- func EncodePublishOfferRequest(files []string, price *big.Int, expiry int64, qos uint64) ([]byte, error)
- func EncodeUploadFileStartRequest(tag string, data []byte) ([]byte, error)
Constants ¶
const ( InitialisationRequestType = 0 ListPeersRequestType = 1 ListPeersResponseType = 2 InspectPeerRequestType = 3 InspectPeerResponseType = 5 ChangePeerStatusRequestType = 6 ListCIDFrequencyRequestType = 12 ListCIDFrequencyResponseType = 13 GetOfferByCIDRequestType = 14 GetOfferByCIDResponseType = 15 CacheOfferByDigestRequestType = 16 ListFilesRequestType = 17 ListFilesResponseType = 18 PublishOfferRequestType = 19 UploadFileRequestType = 20 ForceSyncRequestType = 21 ACKType = 22 )
Variables ¶
This section is empty.
Functions ¶
func DecodeCacheOfferByDigestRequest ¶
DecodeCacheOfferByDigestRequest is used to get the fields from byte array of cacheOfferByDigestRequestJson
func DecodeChangePeerStatusRequest ¶
DecodeChangePeerStatusRequest is used to get the fields from changePeerStatusRequestJson
func DecodeGetOfferByCIDRequest ¶
DecodeGetOfferByCIDRequest is used to get the fields from byte array of getOfferByCIDRequestJson
func DecodeGetOfferByCIDResponse ¶
func DecodeGetOfferByCIDResponse(data []byte) ( []string, []string, []string, []int64, []uint64, error, )
DecodeGetOfferByCIDResponse is used to get the fields from byte array of getOfferByCIDResponseJson
func DecodeInitialisationRequest ¶
func DecodeInitialisationRequest(data []byte) ( string, int, string, string, string, string, string, string, string, string, error, )
DecodeInitialisationRequest is used to get the fields from byte array of initialisationRequestJson
func DecodeInspectPeerRequest ¶
DecodeInspectPeerRequest is used to get the fields from byte array of inspectPeerRequestJson
func DecodeInspectPeerResponse ¶
DecodeInspectPeerResponse is used to get the fields from byte array of inspectPeerResponseJson
func DecodeListCIDFrequencyRequest ¶
DecodeListCIDFrequencyRequest is used to get the fields from byte array of listCIDFrequencyRequestJson
func DecodeListCIDFrequencyResponse ¶
DecodeListCIDFrequencyResponse is used to get the fields from byte array of listCIDFrequencyResponseJson
func DecodeListFilesResponse ¶
DecodeListFilesResponse is used to get the fields from byte array of listFilesResponseJson
func DecodeListPeersResponse ¶
DecodeListPeersResponse is used to get the fields from byte array of listPeersResponseJson
func DecodePublishOfferRequest ¶
DecodePublishOfferRequest is used to get the fields from byte array of publishOfferRequestJson
func DecodeUploadFileStartRequest ¶
DecodeUploadFileStartRequest is used to get the fields from byte array of uploadFileStartRequestJson
func EncodeCacheOfferByDigestRequest ¶
EncodeCacheOfferByDigestRequest is used to get the byte array of cacheOfferByDigestRequestJson
func EncodeChangePeerStatusRequest ¶
EncodeChangePeerStatusRequest is used to get the byte array of changePeerStatusRequestJson
func EncodeGetOfferByCIDRequest ¶
EncodeGetOfferByCIDRequest is used to get the byte array of getOfferByCIDRequestJson
func EncodeGetOfferByCIDResponse ¶
func EncodeGetOfferByCIDResponse( digests []string, providers []string, prices []string, expiry []int64, qos []uint64, ) ([]byte, error)
EncodeGetOfferByCIDResponse is used to get the byte array of getOfferByCIDResponseJson
func EncodeInitialisationRequest ¶
func EncodeInitialisationRequest( p2pPrivKey string, p2pPort int, networkAddr string, rootPrivKey string, lotusAPIAddr string, lotusAuthToken string, registerPrivKey string, registerAPIAddr string, registerAuthToken string, regionCode string, ) ([]byte, error)
EncodeInitialisationRequest is used to get the byte array of initialisationRequestJson
func EncodeInspectPeerRequest ¶
EncodeInspectPeerRequest is used to get the byte array of inspectPeerRequestJson
func EncodeInspectPeerResponse ¶
func EncodeInspectPeerResponse( score int64, pending bool, blocked bool, history []string, ) ([]byte, error)
EncodeInspectPeerResponse is used to get the byte array of inspectPeerResponseJson
func EncodeListCIDFrequencyRequest ¶
EncodeListCIDFrequencyRequest is used to get the byte array of listCIDFrequencyRequestJson
func EncodeListCIDFrequencyResponse ¶
EncodeListCIDFrequencyResponse is used to get the byte array of listCIDFrequencyResponseJson
func EncodeListFilesResponse ¶
func EncodeListFilesResponse( files []string, cids []string, sizes []int64, published []bool, frequency []int, ) ([]byte, error)
EncodeListFilesResponse is used to get the byte array of listFilesResponseJson
func EncodeListPeersResponse ¶
func EncodeListPeersResponse( peerIDs []string, peerScore []int64, peerPending []bool, peerBlocked []bool, peerRecent []string, ) ([]byte, error)
EncodeListPeersResponse is used to get the byte array of listPeersResponseJson
Types ¶
This section is empty.
Source Files ¶
- ack.go
- cache_offer_by_digest_request.go
- change_peer_status_request.go
- get_offer_by_cid_request.go
- get_offer_by_cid_response.go
- initialisation_request.go
- inspect_peer_request.go
- inspect_peer_response.go
- list_cid_frequency_request.go
- list_cid_frequency_response.go
- list_files_response.go
- list_peers_response.go
- publish_offer_request.go
- type.go
- upload_file_request.go