aboutsummaryrefslogtreecommitdiff
path: root/cmd/xedn/uplodr/uplodr.proto
blob: f9d4859606ce4aea829a99b28d68a68b58c09741 (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
syntax = "proto3";
package within.website.x.xedn.uplodr;
option go_package = "within.website/x/cmd/xedn/uplodr/pb";

service Image {
  rpc Ping(Echo) returns (Echo);
  rpc Upload(UploadReq) returns (UploadResp);
}

message UploadReq {
  string file_name = 1;
  bytes data = 2;
  string folder = 3;
}

message UploadResp {
  repeated Variant variants = 1;
}

message Variant {
  string url = 1;
  string mime_type = 2;
}

message Echo {
  string nonce = 1;
}