grpc setup
This commit is contained in:
parent
b6f84af6bd
commit
12e3e605af
10 changed files with 1148 additions and 5 deletions
proto/vpn/v1
34
proto/vpn/v1/vpn.proto
Normal file
34
proto/vpn/v1/vpn.proto
Normal file
|
@ -0,0 +1,34 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package vpn.v1;
|
||||
|
||||
message CreateProfileRequest {
|
||||
string flavor_id = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message CreateProfileResponse {
|
||||
string id = 1;
|
||||
optional string connection_string = 2;
|
||||
}
|
||||
|
||||
|
||||
message AvaliableFlavorsRequest {
|
||||
|
||||
}
|
||||
|
||||
|
||||
message AvaliableFlavorsResponse {
|
||||
repeated Flavor flavors = 1;
|
||||
}
|
||||
|
||||
message Flavor {
|
||||
string id = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
}
|
||||
|
||||
service ProfilesService {
|
||||
rpc AvaliableFlavors(AvaliableFlavorsRequest) returns (AvaliableFlavorsResponse) {}
|
||||
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse) {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue