smegmesh/pkg/grpc/ctrlserver/syncservice.proto

26 lines
436 B
Protocol Buffer
Raw Normal View History

2023-10-10 21:14:40 +02:00
syntax = "proto3";
package syncservice;
option go_package = "pkg/rpc";
service SyncService {
rpc GetConf(GetConfRequest) returns (GetConfReply) {}
rpc SyncMesh(SyncMeshRequest) returns (SyncMeshReply) {}
}
message GetConfRequest {
string meshId = 1;
}
message GetConfReply {
bytes mesh = 1;
}
message SyncMeshRequest {
string meshId = 1;
bytes changes = 2;
}
message SyncMeshReply {
bool success = 1;
}