add app reservation (#284)

This commit is contained in:
Asim Aslam
2021-11-26 10:30:59 +00:00
committed by GitHub
parent 3d2278a72b
commit efe7ad6ee8
12 changed files with 640 additions and 0 deletions

32
app/proto/app.proto Normal file
View File

@@ -0,0 +1,32 @@
syntax = "proto3";
package app;
option go_package = "./proto;app";
service App {
rpc Reserve(ReserveRequest) returns (ReserveResponse) {}
}
message Reservation {
// name of the app
string name = 1;
// owner id
string owner = 2;
// associated token
string token = 3;
// time of reservation
string created = 4;
// time reservation expires
string expires = 5;
}
// Reserve your app name
message ReserveRequest {
// name of your app e.g helloworld
string name = 1;
}
message ReserveResponse {
Reservation reservation = 1;
}