blob: c9c9f0e60b6e6864f7633fe2d4b4071aa8dc77c5 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
syntax = "proto3";
package within.website.x.sanguisuga;
option go_package = "within.website/x/buf/sanguisuga";
import "google/protobuf/empty.proto";
message Show {
string title = 1;
string disk_path = 2;
string quality = 3;
}
message Shows { repeated Show shows = 1; }
message TVSnatch {
string category = 1;
string name = 2;
bool freeleech = 3;
string torrent_id = 4;
}
message TVSnatches { repeated TVSnatch snatches = 1; }
message AnimeSnatch {
string fname = 1;
string show_name = 2;
string episode = 3;
string resolution = 4;
string crc32 = 5;
string bot_name = 6;
string pack_id = 7;
}
message AnimeSnatches { repeated AnimeSnatch snatches = 1; }
service TV {
rpc List(google.protobuf.Empty) returns (Shows) {};
rpc Track(Show) returns (google.protobuf.Empty) {};
rpc Untrack(Show) returns (google.protobuf.Empty) {};
rpc Snatches(google.protobuf.Empty) returns (TVSnatches) {};
}
service Anime {
rpc List(google.protobuf.Empty) returns (Shows) {};
rpc Track(Show) returns (google.protobuf.Empty) {};
rpc Untrack(Show) returns (google.protobuf.Empty) {};
rpc Snatches(google.protobuf.Empty) returns (AnimeSnatches) {};
}
|