2023-04-17 03:57:12 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package usdpl;
|
|
|
|
|
2024-04-07 16:42:37 +01:00
|
|
|
// The tools service
|
2023-04-17 03:57:12 +01:00
|
|
|
service DevTools {
|
2024-04-07 16:42:37 +01:00
|
|
|
// Write a message to the back-end log
|
2023-04-17 03:57:12 +01:00
|
|
|
rpc Log (LogMessage) returns (Empty);
|
2024-04-07 16:42:37 +01:00
|
|
|
|
|
|
|
// Echo a message through the back-end
|
|
|
|
rpc Echo (Ok) returns (Ok);
|
|
|
|
|
|
|
|
// Retrieve the USDPL version
|
|
|
|
rpc Version (Empty) returns (VersionString);
|
2023-04-17 03:57:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2024-04-07 16:42:37 +01:00
|
|
|
message Empty {}
|
|
|
|
|
|
|
|
message Ok {
|
2023-06-04 19:05:33 +01:00
|
|
|
bool ok = 1;
|
|
|
|
}
|
2024-04-07 16:42:37 +01:00
|
|
|
|
|
|
|
message VersionString {
|
|
|
|
string version = 1;
|
|
|
|
}
|