syntax = "proto3";
package timer;
service TimerService {
rpc Status (Empty) returns (State);
rpc Pause (Empty) returns (State);
rpc Resume (Empty) returns (State);
rpc Stop (Empty) returns (State);
}
message Empty {
}
message State {
uint64 duration = 1;
int64 started_at = 2;
int64 finish_at = 3;
bool stopped = 4;
bool paused = 5;
int64 paused_seconds = 6;
}