mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-14 18:40:41 +01:00
32 lines
536 B
Protocol Buffer
32 lines
536 B
Protocol Buffer
syntax = "proto3";
|
|
package rpctypes;
|
|
|
|
option go_package = "pkg/rpc";
|
|
|
|
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 {
|
|
bytes mesh = 2;
|
|
}
|
|
|
|
message JoinMeshRequest {
|
|
bytes changes = 1;
|
|
}
|
|
|
|
message JoinMeshReply {
|
|
bool success = 1;
|
|
} |