yotei/protos/protocol.proto
xqtc 7fc00dcbb0
All checks were successful
/ build (push) Successful in 2m6s
/ clippy (push) Successful in 1m37s
Impl AliveCheck server on compute node
2024-09-09 17:11:37 +02:00

55 lines
865 B
Protocol Buffer

syntax = "proto3";
package sched;
service Data {
rpc Data (DataRequest) returns (DataResponse);
}
message DataRequest {
string node_id = 1;
string uuid = 2;
string hashmap_id = 3;
}
message DataResponse {
string node_id = 1;
string uuid = 2;
string hashmap_id = 3;
string length = 4;
bytes data = 5;
}
service Auth {
rpc Auth (LoginRequest) returns (LoginResponse);
}
message LoginRequest {
string node_id = 1;
message specs {
uint32 threads = 1;
float clock = 2;
uint32 mem_mib = 3;
uint32 net_speed_mib = 4;
}
}
message LoginResponse {
string node_id = 1;
enum status {
ACCEPTED = 0;
REJECTED = 1;
}
}
service AliveCheck {
rpc AliveCheck (AliveCheckRequest) returns (AliveCheckResponse);
}
message AliveCheckRequest {
string node_id = 1;
}
message AliveCheckResponse {
string node_id = 1;
}