mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
add app reservation (#284)
This commit is contained in:
32
app/proto/app.proto
Normal file
32
app/proto/app.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user