MCPcopy Index your code
hub / github.com/dearcode/candy / CheckFile

Method CheckFile

meta/gate.pb.go:602–602  ·  view source on GitHub ↗

CheckFile 客户端检测文件是否存在,文件的临时ID和md5, 服务器返回不存在的文件ID.

(ctx context.Context, in *GateCheckFileRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

600 UploadFile(ctx context.Context, in *GateUploadFileRequest, opts ...grpc.CallOption) (*GateUploadFileResponse, error)
601 // CheckFile 客户端检测文件是否存在,文件的临时ID和md5, 服务器返回不存在的文件ID.
602 CheckFile(ctx context.Context, in *GateCheckFileRequest, opts ...grpc.CallOption) (*GateCheckFileResponse, error)
603 // DownloadFile 客户端下载文件,传入ID,返回具体文件内容.
604 DownloadFile(ctx context.Context, in *GateDownloadFileRequest, opts ...grpc.CallOption) (*GateDownloadFileResponse, error)
605 // ID 参照消息ID,每次可逆序(旧消息)或正序(新消息)接收100条

Callers 3

FileExistMethod · 0.65
_Gate_CheckFile_HandlerFunction · 0.65
checkFileMethod · 0.65

Implementers 2

gateClientmeta/gate.pb.go
Gategate/server.go

Calls

no outgoing calls

Tested by

no test coverage detected