Documentation ¶
Index ¶
- func FindMyFileListData(fileName, dir, reqID, keyword string, fileType protos.FileSortType, isUp bool) *protos.ReqFindMyFileList
- func PPMsgHeader(data []byte, head string) header.MessageHead
- func ReqDeleteFileData(fileHash, reqID string) *protos.ReqDeleteFile
- func ReqDeleteShareData(reqID, shareID string) *protos.ReqDeleteShare
- func ReqDownloadSliceData(target *protos.RspFileStorageInfo, rsp *protos.DownloadSliceInfo) *protos.ReqDownloadSlice
- func ReqDownloadSliceWrong(taskID, sliceHash, p2pAddress, walletAddress string, ...) *protos.ReqDownloadSliceWrong
- func ReqFileStorageInfoData(path, savePath, reqID string, isVideoStream bool, ...) *protos.ReqFileStorageInfo
- func ReqGetPPStatusData() *protos.ReqGetPPStatus
- func ReqGetPPlistData() *protos.ReqGetPPList
- func ReqGetSPlistData() *protos.ReqGetSPList
- func ReqGetShareFileData(keyword, sharePassword, reqID string) *protos.ReqGetShareFile
- func ReqMiningData() *protos.ReqMining
- func ReqNodeStatusData() *protos.ReqReportNodeStatus
- func ReqRegisterData() *protos.ReqRegister
- func ReqRegisterDataTR(target *protos.ReqRegister) *msg.RelayMsgBuf
- func ReqRegisterNewPPData() *protos.ReqRegisterNewPP
- func ReqReportDownloadResultData(target *protos.RspDownloadSlice, isPP bool) *protos.ReqReportDownloadResult
- func ReqReportTaskBPData(taskID string, traffic uint64) *msg.RelayMsgBuf
- func ReqReportUploadSliceResultData(target *protos.RspUploadFileSlice) *protos.ReportUploadSliceResult
- func ReqReportUploadSliceResultDataPP(target *protos.ReqUploadFileSlice) *protos.ReportUploadSliceResult
- func ReqShareFileData(reqID, fileHash, pathHash string, isPrivate bool, shareTime int64) *protos.ReqShareFile
- func ReqShareLinkData(reqID string) *protos.ReqShareLink
- func ReqTransferDownloadData(notice *protos.ReqFileSliceBackupNotice, newPpP2pAddress string) *msg.RelayMsgBuf
- func ReqUploadFileSliceData(task *task.UploadSliceTask) *protos.ReqUploadFileSlice
- func RequestUploadFileData(paths, storagePath, reqID, ownerWalletAddress string, ...) *protos.ReqUploadFile
- func RspDeleteSliceData(sliceHash, msg string, result bool) *protos.RspDeleteSlice
- func RspDownloadSliceData(target *protos.ReqDownloadSlice) *protos.RspDownloadSlice
- func RspDownloadSliceDataSplit(rsp *protos.RspDownloadSlice, ...) *protos.RspDownloadSlice
- func RspDownloadSliceWrong(target *protos.RspDownloadSliceWrong) *msg.RelayMsgBuf
- func RspGetHDInfoData() *protos.RspGetHDInfo
- func RspTransferDownload(data []byte, taskId, sliceHash, spP2pAddress string, offset, sliceSize uint64) *protos.RspTransferDownload
- func RspTransferDownloadResultData(taskId, sliceHash, spP2pAddress string) *protos.RspTransferDownloadResult
- func RspUploadFileSliceData(target *protos.ReqUploadFileSlice) *protos.RspUploadFileSlice
- func UnmarshalData(ctx context.Context, target interface{}) bool
- func UploadSpeedOfProgressData(fileHash string, size uint64) *protos.UploadSpeedOfProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMyFileListData ¶
func FindMyFileListData(fileName, dir, reqID, keyword string, fileType protos.FileSortType, isUp bool) *protos.ReqFindMyFileList
func ReqDeleteFileData ¶
func ReqDeleteFileData(fileHash, reqID string) *protos.ReqDeleteFile
func ReqDeleteShareData ¶
func ReqDeleteShareData(reqID, shareID string) *protos.ReqDeleteShare
func ReqDownloadSliceData ¶
func ReqDownloadSliceData(target *protos.RspFileStorageInfo, rsp *protos.DownloadSliceInfo) *protos.ReqDownloadSlice
func ReqDownloadSliceWrong ¶
func ReqDownloadSliceWrong(taskID, sliceHash, p2pAddress, walletAddress string, wrongType protos.DownloadWrongType) *protos.ReqDownloadSliceWrong
func ReqFileStorageInfoData ¶
func ReqFileStorageInfoData(path, savePath, reqID string, isVideoStream bool, shareRequest *protos.ReqGetShareFile) *protos.ReqFileStorageInfo
func ReqGetPPStatusData ¶ added in v0.5.1
func ReqGetPPStatusData() *protos.ReqGetPPStatus
func ReqGetPPlistData ¶
func ReqGetPPlistData() *protos.ReqGetPPList
func ReqGetSPlistData ¶
func ReqGetSPlistData() *protos.ReqGetSPList
func ReqGetShareFileData ¶
func ReqGetShareFileData(keyword, sharePassword, reqID string) *protos.ReqGetShareFile
func ReqMiningData ¶
func ReqNodeStatusData ¶
func ReqNodeStatusData() *protos.ReqReportNodeStatus
func ReqRegisterData ¶
func ReqRegisterData() *protos.ReqRegister
func ReqRegisterDataTR ¶
func ReqRegisterDataTR(target *protos.ReqRegister) *msg.RelayMsgBuf
func ReqRegisterNewPPData ¶
func ReqRegisterNewPPData() *protos.ReqRegisterNewPP
func ReqReportDownloadResultData ¶
func ReqReportDownloadResultData(target *protos.RspDownloadSlice, isPP bool) *protos.ReqReportDownloadResult
func ReqReportTaskBPData ¶
func ReqReportTaskBPData(taskID string, traffic uint64) *msg.RelayMsgBuf
TODO: Change to BP to SP
func ReqReportUploadSliceResultData ¶
func ReqReportUploadSliceResultData(target *protos.RspUploadFileSlice) *protos.ReportUploadSliceResult
func ReqReportUploadSliceResultDataPP ¶
func ReqReportUploadSliceResultDataPP(target *protos.ReqUploadFileSlice) *protos.ReportUploadSliceResult
func ReqShareFileData ¶
func ReqShareFileData(reqID, fileHash, pathHash string, isPrivate bool, shareTime int64) *protos.ReqShareFile
func ReqShareLinkData ¶
func ReqShareLinkData(reqID string) *protos.ReqShareLink
func ReqTransferDownloadData ¶
func ReqTransferDownloadData(notice *protos.ReqFileSliceBackupNotice, newPpP2pAddress string) *msg.RelayMsgBuf
func ReqUploadFileSliceData ¶
func ReqUploadFileSliceData(task *task.UploadSliceTask) *protos.ReqUploadFileSlice
func RequestUploadFileData ¶
func RequestUploadFileData(paths, storagePath, reqID, ownerWalletAddress string, isCover, isVideoStream, isEncrypted bool) *protos.ReqUploadFile
RequestUploadFileData RequestUploadFileData, ownerWalletAddress can be either pp node's walletAddr or file owner's walletAddr
func RspDeleteSliceData ¶
func RspDeleteSliceData(sliceHash, msg string, result bool) *protos.RspDeleteSlice
func RspDownloadSliceData ¶
func RspDownloadSliceData(target *protos.ReqDownloadSlice) *protos.RspDownloadSlice
func RspDownloadSliceDataSplit ¶
func RspDownloadSliceDataSplit(rsp *protos.RspDownloadSlice, dataStart, dataEnd, offsetStart, offsetEnd, sliceOffsetStart, sliceOffsetEnd uint64, last bool) *protos.RspDownloadSlice
func RspDownloadSliceWrong ¶
func RspDownloadSliceWrong(target *protos.RspDownloadSliceWrong) *msg.RelayMsgBuf
func RspGetHDInfoData ¶
func RspGetHDInfoData() *protos.RspGetHDInfo
func RspTransferDownload ¶
func RspTransferDownload(data []byte, taskId, sliceHash, spP2pAddress string, offset, sliceSize uint64) *protos.RspTransferDownload
func RspTransferDownloadResultData ¶
func RspTransferDownloadResultData(taskId, sliceHash, spP2pAddress string) *protos.RspTransferDownloadResult
func RspUploadFileSliceData ¶
func RspUploadFileSliceData(target *protos.ReqUploadFileSlice) *protos.RspUploadFileSlice
func UnmarshalData ¶
func UploadSpeedOfProgressData ¶
func UploadSpeedOfProgressData(fileHash string, size uint64) *protos.UploadSpeedOfProgress
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.