blob: cfd7bcf150017cfe46e6a78a65bc6084f4614ae5 (
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
30
31
32
|
syntax = "proto3";
package within.website.x.patchouli;
option go_package = "within.website/x/buf/patchouli";
import "google/protobuf/timestamp.proto";
service Syndicate {
rpc Info(TwitchInfoReq) returns (TwitchInfoResp) {};
rpc Download(TwitchDownloadReq) returns (TwitchDownloadResp) {};
}
message TwitchInfoReq {
string url = 1;
}
message TwitchInfoResp {
string id = 1;
string title = 2;
string thumbnail_url = 3;
string duration = 4;
google.protobuf.Timestamp upload_date = 5;
string url = 6;
}
message TwitchDownloadReq {
string url = 1;
}
message TwitchDownloadResp {
string url = 1;
string location = 2;
}
|