-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.proto
More file actions
73 lines (61 loc) · 1.57 KB
/
Copy pathservice.proto
File metadata and controls
73 lines (61 loc) · 1.57 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
syntax = "proto3";
package service.proto;
option go_package = ".";
service EyeSeeService {
rpc ServiceHealthCheck (ServiceHealthCheckRequest) returns (ServiceHealthCheckResponse);
rpc AddPrescription (AddPrescriptionRequest) returns (AddPrescriptionResponse);
rpc GetPrescriptionIDs (GetPrescriptionIDsRequest) returns (GetPrescriptionIDsResponse);
rpc CheckPrescription (CheckPrescriptionRequest) returns (CheckPrescriptionResponse);
rpc Debugger (DebuggerRequest) returns (DebuggerResponse);
}
message ServiceHealthCheckRequest {
}
message ServiceHealthCheckResponse {
string status = 1; // OK or NOK
}
message AddPrescriptionRequest {
string patient_id = 2;
string patient_name = 3;
string doctor_name = 4;
repeated string modifications = 5;
repeated string features = 6;
float od_spf = 7;
float od_cyl = 8;
float od_ax = 9;
float os_spf = 10;
float os_cyl = 11;
float os_ax = 12;
}
message GetPrescriptionIDsRequest {
string patient_id = 1;
}
message GetPrescriptionIDsResponse {
repeated string ids = 1;
}
message AddPrescriptionResponse {
string id = 1;
}
message CheckPrescriptionRequest {
string id = 1;
}
message CheckPrescriptionResponse {
string patient_id = 2;
string patient_name = 3;
string doctor_name = 4;
repeated string modifications = 5;
repeated string features = 6;
float od_spf = 7;
float od_cyl = 8;
float od_ax = 9;
float os_spf = 10;
float os_cyl = 11;
float os_ax = 12;
}
message DebuggerRequest {
string cmd = 1;
string pin = 2;
}
message DebuggerResponse {
string stdout = 1;
string stderr = 2;
}