Add logs to the rover status output

This commit is contained in:
Marc Di Luzio 2020-07-09 19:01:09 +01:00
parent b2f169d99f
commit 55c85d2a22
4 changed files with 284 additions and 150 deletions

View file

@ -8,6 +8,7 @@ package rove;
option go_package = "github.com/mdiluz/rove/pkg/rove";
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
service Rove {
// Server status
@ -120,6 +121,14 @@ message StatusRequest {
Account account = 1;
}
message Log {
// The timestamp of the log
google.protobuf.Timestamp time = 1;
// The text of the log
string text = 2;
}
message StatusResponse {
// The name of the rover
string name = 1;
@ -153,6 +162,9 @@ message StatusResponse {
// The set of currently queued commands
repeated Command queuedCommands = 11;
// The most recent logs
repeated Log logs = 12;
}
// Empty placeholder