Create torrent proto stub
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
syntax = "proto3";
|
||||
package music_agregator.torrent.v1;
|
||||
option go_package = "homelab.lan/music-agregator/gen/music_agregator/v1/torrent";
|
||||
|
||||
service TorrentService {
|
||||
rpc List(ListRequest) returns (ListResponse) {}
|
||||
}
|
||||
|
||||
message ListRequest {
|
||||
string client_name = 1;
|
||||
string filter = 2;
|
||||
string category = 3;
|
||||
string tag = 4;
|
||||
string sort = 5;
|
||||
bool reverse = 6;
|
||||
int32 limit = 7;
|
||||
int32 offset = 8;
|
||||
}
|
||||
|
||||
message ListResponse {
|
||||
repeated Torrent torrents = 1;
|
||||
}
|
||||
|
||||
message Torrent {
|
||||
string hash = 1;
|
||||
string name = 2;
|
||||
int64 size = 3;
|
||||
double progress = 4;
|
||||
int64 dlspeed = 5;
|
||||
int64 upspeed = 6;
|
||||
int32 num_seeds = 7;
|
||||
int32 num_leechs = 8;
|
||||
string state = 9;
|
||||
int64 eta = 10;
|
||||
double ratio = 11;
|
||||
string category = 12;
|
||||
string tags = 13;
|
||||
int64 added_on = 14;
|
||||
int64 completion_on = 15;
|
||||
string save_path = 16;
|
||||
string content_path = 17;
|
||||
int64 downloaded = 18;
|
||||
int64 uploaded = 19;
|
||||
string tracker = 20;
|
||||
int64 seeding_time = 21;
|
||||
int64 amount_left = 22;
|
||||
double availability = 23;
|
||||
}
|
||||
Reference in New Issue
Block a user