blob: 121ada36a56149ee04dabcfd8b3b9f7265902582 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
syntax = "proto3";
package within.website.x.xedn.uplodr;
option go_package = "within.website/x/proto/uplodr";
service Image {
rpc Ping(Echo) returns (Echo);
rpc Upload(UploadReq) returns (UploadResp);
rpc Stream(stream UploadReq) returns (stream UploadResp);
}
message UploadReq {
string file_name = 1;
bytes data = 2;
string folder = 3;
bool no_encode = 4;
bool done = 5;
}
message UploadResp {
repeated Variant variants = 1;
string blurhash = 2;
}
message Variant {
string url = 1;
string mime_type = 2;
}
message Echo { string nonce = 1; }
|