requests

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 PPMsgHeader

func PPMsgHeader(data []byte, head string) header.MessageHead

PPMsgHeader

func ReqDeleteFileData

func ReqDeleteFileData(fileHash, reqID string) *protos.ReqDeleteFile

func ReqDeleteShareData

func ReqDeleteShareData(reqID, shareID string) *protos.ReqDeleteShare

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 ReqMiningData() *protos.ReqMining

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 UnmarshalData(ctx context.Context, target interface{}) bool

func UploadSpeedOfProgressData

func UploadSpeedOfProgressData(fileHash string, size uint64) *protos.UploadSpeedOfProgress

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL