39 lines
615 B
Protocol Buffer
39 lines
615 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package usdpl;
|
|
|
|
// The tools service
|
|
service DevTools {
|
|
// Write a message to the back-end log
|
|
rpc Log (LogMessage) returns (Empty);
|
|
|
|
// Echo a message through the back-end
|
|
rpc Echo (Ok) returns (Ok);
|
|
|
|
// Retrieve the USDPL version
|
|
rpc Version (Empty) returns (VersionString);
|
|
}
|
|
|
|
enum LogLevel {
|
|
Trace = 0;
|
|
Debug = 1;
|
|
Info = 2;
|
|
Warn = 3;
|
|
Error = 4;
|
|
}
|
|
|
|
// The request message containing the log message
|
|
message LogMessage {
|
|
LogLevel level = 1;
|
|
string msg = 2;
|
|
}
|
|
|
|
message Empty {}
|
|
|
|
message Ok {
|
|
bool ok = 1;
|
|
}
|
|
|
|
message VersionString {
|
|
string version = 1;
|
|
}
|