-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.proto
More file actions
39 lines (32 loc) · 849 Bytes
/
client.proto
File metadata and controls
39 lines (32 loc) · 849 Bytes
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
syntax = "proto3";
// Communication between the client and pfsd
package client;
service ClientService {
// Asks to initialize a new cluster
rpc Init (InitRequest) returns (InitResponse);
// Join an existing cluster.
rpc Join (JoinRequest) returns (EmptyMessage);
// Status of the cluster.
rpc Status (EmptyMessage) returns (StatusResponse);
}
message EmptyMessage {}
message InitRequest {
// Path at which the filesystem should be mounted.
string mount_path = 1;
}
message InitResponse {
// Address at which the node is available.
string address = 1;
// Token used to join the cluster
string token = 2;
}
message JoinRequest {
// Token used to join
string token = 1;
// Address of one of the peers to join
string address = 2;
}
message StatusResponse {
// Nodes of the cluster
repeated string nodes = 1;
}