33 lines
471 B
Protocol Buffer
33 lines
471 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 LoginResponse {
|
|
|
|
}
|