mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 14:14:52 +00:00
Implement grpc server in the daemon to receive cluster requests
This commit is contained in:
1 parent
e074b6855f
commit
afe9c13283
8 files changed
+703
-3
No files matched your search
@@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package cluster;
|
||||
|
||||
option go_package = "github.com/psviderski/uncloud/internal/machine/cluster/pb";
|
||||
|
||||
service Cluster {
|
||||
rpc AddMachine(AddMachineRequest) returns (AddMachineResponse);
|
||||
}
|
||||
|
||||
message MachineInfo {
|
||||
bytes id = 1;
|
||||
string name = 2;
|
||||
IPPrefix subnet = 3;
|
||||
repeated IPPort endpoints = 4;
|
||||
bytes publicKey = 5;
|
||||
}
|
||||
|
||||
message AddMachineRequest {
|
||||
MachineInfo machine = 1;
|
||||
}
|
||||
|
||||
message AddMachineResponse {
|
||||
MachineInfo machine = 1;
|
||||
}
|
||||
|
||||
message IPPort {
|
||||
bytes ip = 1;
|
||||
int32 port = 2;
|
||||
}
|
||||
|
||||
message IPPrefix {
|
||||
bytes ip = 1;
|
||||
int32 bits = 2;
|
||||
}
|
||||
Reference in new issue
Block a user