Added sync

This commit is contained in:
Tim Beatham
2023-10-10 20:14:40 +01:00
parent e729c5b181
commit ec87afc235
16 changed files with 794 additions and 41 deletions

View File

@ -4,27 +4,10 @@ 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;
string meshId = 2;
}