Files
music-agregator/proto/torrent_manager/v1/torrent_manager.proto
T
2026-07-25 12:07:27 +02:00

34 lines
529 B
Protocol Buffer

syntax = "proto3";
package torrent_manager.v1;
service TorrentManager {
rpc Search(SearchRequest) returns (SearchResponse);
rpc Add(AddRequest) returns (AddResponse);
}
message SearchRequest {
string name = 1;
}
message SearchResponse {
repeated SearchItem item = 1;
}
message SearchItem {
string name = 1;
string url = 2;
// -1 when the indexer did not report the value.
int32 seeders = 3;
int32 leechers = 4;
}
message AddRequest {
string url = 1;
}
message AddResponse {
string torrent_id = 1;
}