smegmesh/pkg/grpc/ctrlserver/ctrlserver.proto

33 lines
559 B
Protocol Buffer
Raw Normal View History

2023-09-21 12:13:36 +02:00
syntax = "proto3";
package rpctypes;
2023-10-04 18:17:53 +02:00
option go_package = "pkg/rpc";
2023-09-21 12:13:36 +02:00
service MeshCtrlServer {
rpc GetMesh(GetMeshRequest) returns (GetMeshReply) {}
rpc JoinMesh(JoinMeshRequest) returns (JoinMeshReply) {}
}
message MeshNode {
string publicKey = 1;
string wgEndpoint = 2;
string endpoint = 3;
string wgHost = 4;
}
message GetMeshRequest {
string meshId = 1;
}
message GetMeshReply {
2023-10-06 11:12:46 +02:00
bytes mesh = 2;
2023-09-21 12:13:36 +02:00
}
message JoinMeshRequest {
2023-10-06 11:12:46 +02:00
bytes changes = 1;
2023-10-06 12:52:51 +02:00
string meshId = 2;
2023-09-21 12:13:36 +02:00
}
message JoinMeshReply {
bool success = 1;
}