validator: submission and mapfix release endpoints (#11)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
These endpoints proxy the creation and updation of maps_extended entries, while also updating the relevant submission / mapfix status. Reviewed-on: #11 Co-authored-by: Rhys Lloyd <krakow20@gmail.com> Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
This commit was merged in pull request #11.
This commit is contained in:
@@ -2,6 +2,8 @@ syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/validator";
|
||||
|
||||
import "maps_extended.proto";
|
||||
|
||||
package validator;
|
||||
|
||||
service ValidatorMapfixService {
|
||||
@@ -14,6 +16,7 @@ service ValidatorMapfixService {
|
||||
rpc SetStatusValidated(MapfixID) returns (NullResponse);
|
||||
rpc SetStatusFailed(MapfixID) returns (NullResponse);
|
||||
rpc SetStatusUploaded(MapfixID) returns (NullResponse);
|
||||
rpc SetStatusReleased(MapfixReleaseRequest) returns (NullResponse);
|
||||
}
|
||||
|
||||
service ValidatorSubmissionService {
|
||||
@@ -26,6 +29,7 @@ service ValidatorSubmissionService {
|
||||
rpc SetStatusValidated(SubmissionID) returns (NullResponse);
|
||||
rpc SetStatusFailed(SubmissionID) returns (NullResponse);
|
||||
rpc SetStatusUploaded(StatusUploadedRequest) returns (NullResponse);
|
||||
rpc SetStatusReleased(maps_extended.MapCreate) returns (NullResponse);
|
||||
}
|
||||
|
||||
message MapfixID { uint64 ID = 1; }
|
||||
@@ -89,6 +93,12 @@ message StatusUploadedRequest {
|
||||
uint64 UploadedAssetID = 2;
|
||||
}
|
||||
|
||||
message MapfixReleaseRequest {
|
||||
uint64 ID = 1;
|
||||
uint64 AssetVersion = 2;
|
||||
uint32 Modes = 3;
|
||||
}
|
||||
|
||||
message NullResponse {}
|
||||
|
||||
// Operations
|
||||
|
||||
Reference in New Issue
Block a user