-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgfs.proto
53 lines (39 loc) · 1.03 KB
/
gfs.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
syntax = "proto3";
package gfs;
service MasterServerToClient {
rpc ListFiles(String) returns (String) {}
rpc CreateFile(String) returns (String) {}
rpc AppendFile(String) returns (String) {}
rpc CreateChunk(String) returns (String) {}
rpc ReadFile(String) returns (String) {}
rpc WriteFile(String) returns (String) {}
}
service ChunkServerToClient {
rpc Create(String) returns (String) {}
rpc GetChunkSpace(String) returns (String) {}
rpc Append(String) returns (String) {}
rpc Read(String) returns (String) {}
rpc AddData(String) returns (String) {}
rpc Write(String) returns (String) {}
}
message String {
string st = 1;
}
message Empty {
}
service Health {
rpc Check(HealthCheckRequest) returns (HealthCheckResponse) {}
}
message HealthCheckRequest {
string lease = 1;
}
message HealthCheckResponse {
string status = 1;
}
service PrimaryToClient{
rpc Commit (String) returns (String) {}
}
// not used
message PrimaryToClientRequest {
string clientid = 1;
}