yotei/protos/protocol.proto

64 lines
1,021 B
Protocol Buffer
Raw Normal View History

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;
2024-09-30 20:17:12 +02:00
uint32 length = 4;
bytes data = 5;
}
service Auth {
2024-09-10 17:01:55 +02:00
rpc Login (LoginRequest) returns (LoginResponse);
rpc Logout (LogoutRequest) returns (LogoutResponse);
}
message LoginRequest {
string node_id = 1;
2024-09-05 22:18:05 +02:00
message specs {
uint32 threads = 1;
float clock = 2;
uint32 mem_mib = 3;
uint32 net_speed_mib = 4;
}
}
message LoginResponse {
2024-09-05 22:18:05 +02:00
string node_id = 1;
enum status {
ACCEPTED = 0;
REJECTED = 1;
}
}
2024-09-09 17:11:37 +02:00
2024-09-10 17:01:55 +02:00
message LogoutRequest {
string node_id = 1;
}
message LogoutResponse {
string node_id = 1;
}
2024-09-09 17:11:37 +02:00
service AliveCheck {
rpc AliveCheck (AliveCheckRequest) returns (AliveCheckResponse);
}
message AliveCheckRequest {
string node_id = 1;
}
message AliveCheckResponse {
string node_id = 1;
}