add protobuf definitions
This commit is contained in:
parent
0808f6288e
commit
26fee4a242
1 changed files with 33 additions and 0 deletions
33
src/main/proto/jobserv.proto
Normal file
33
src/main/proto/jobserv.proto
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
syntax = "proto3"
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.ajhahn.jobserv"
|
||||
option java_outer_classname = "JobServProto"
|
||||
option objc_class_prefix = "JSV"
|
||||
|
||||
package jobserv;
|
||||
|
||||
service jobserv {
|
||||
rpc getStatusDetail (RequestMessage) returns (JobStatusMessage) {}
|
||||
rpc getJobOutput (RequestMessage) returns (OutputMessage) {}
|
||||
rpc makeNewJob (NewJobMessage) returns (JobStatusMessage) {}
|
||||
}
|
||||
|
||||
message RequestMessage {
|
||||
int32 PID = 1;
|
||||
int32 RequestType = 2;
|
||||
}
|
||||
|
||||
message NewJobMessage {
|
||||
string Command = 1;
|
||||
}
|
||||
|
||||
message JobStatusMessage {
|
||||
int32 PID = 1;
|
||||
ProcessStatus = 2;
|
||||
}
|
||||
|
||||
message OutputMessage {
|
||||
int32 PID = 1;
|
||||
string ProcessOutput = 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue