29 lines
421 B
Protocol Buffer
29 lines
421 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package proto;
|
|
|
|
option go_package = "./proto";
|
|
|
|
message ListRequestType {
|
|
}
|
|
|
|
message ListResponseType {
|
|
string file_name = 1;
|
|
int64 file_size = 2;
|
|
uint32 file_mode = 3;
|
|
}
|
|
|
|
message fileRequest{
|
|
string file_name = 1;
|
|
int64 file_range = 2;
|
|
}
|
|
|
|
message fileResponse{
|
|
bytes block = 1;
|
|
int64 file_size = 2;
|
|
}
|
|
|
|
service fileService{
|
|
rpc Download(fileRequest) returns (stream fileResponse){};
|
|
}
|