mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 18:11:25 +01:00
27 lines
473 B
Protocol Buffer
27 lines
473 B
Protocol Buffer
syntax = "proto3";
|
|
package syncservice;
|
|
|
|
option go_package = "pkg/rpc";
|
|
|
|
service SyncService {
|
|
rpc GetConf(GetConfRequest) returns (GetConfReply) {}
|
|
rpc SyncMesh(stream SyncMeshRequest) returns (stream SyncMeshReply) {}
|
|
}
|
|
|
|
message GetConfRequest {
|
|
string meshId = 1;
|
|
}
|
|
|
|
message GetConfReply {
|
|
bytes mesh = 1;
|
|
}
|
|
|
|
message SyncMeshRequest {
|
|
string meshId = 1;
|
|
bytes changes = 2;
|
|
}
|
|
|
|
message SyncMeshReply {
|
|
bool success = 1;
|
|
bytes changes = 2;
|
|
} |