generated from VLADIMIR/template_frontend
up
This commit is contained in:
+21
-5
@@ -626,6 +626,14 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
// HTTP uploads are streamed by a dedicated handler, bypassing gRPC message limits.
|
||||
rpc ImportGame(google.api.HttpBody) returns (GameImportRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/games/import"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
rpc StartGameExport(StartGameExportReq) returns (GameExportRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/games/{ID}/export"
|
||||
@@ -1645,16 +1653,24 @@ message Game {
|
||||
// Download ready ZIP through the authenticated streaming HTTP route:
|
||||
// GET /api/games/{ID}/export/download (not an HttpBody RPC).
|
||||
message GameExport {
|
||||
string ID = 1;
|
||||
string state = 2; // preparing, ready or failed; preparing/ready lock game writes.
|
||||
string ID = 1;
|
||||
string state = 2; // preparing, ready or failed; preparing/ready lock game writes.
|
||||
string packageID = 3;
|
||||
int64 size = 4;
|
||||
string sha256 = 5;
|
||||
string failure = 6;
|
||||
int64 size = 4;
|
||||
string sha256 = 5;
|
||||
string failure = 6;
|
||||
}
|
||||
|
||||
message GameImportRsp {
|
||||
int32 gameID = 1;
|
||||
string packageID = 2;
|
||||
bool repeated = 3;
|
||||
}
|
||||
|
||||
message StartGameExportReq { int32 ID = 1; }
|
||||
|
||||
message GetGameExportReq { int32 ID = 1; }
|
||||
|
||||
message GameExportRsp { GameExport export = 1; }
|
||||
|
||||
enum ScreenMode {
|
||||
|
||||
Reference in New Issue
Block a user