Skip to content

Commit bd06da4

Browse files
committed
litrpc: add Status server protos
Add the protos for a new Status server that can be used to query the status of a number of LiT's subservers.
1 parent 8883185 commit bd06da4

File tree

3 files changed

+423
-0
lines changed

3 files changed

+423
-0
lines changed

litrpc/lit-status.pb.go

Lines changed: 294 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litrpc/lit-status.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
syntax = "proto3";
2+
3+
package litrpc;
4+
5+
option go_package = "github.com/lightninglabs/lightning-terminal/litrpc";
6+
7+
// The Status server can be used to query the state of various LiT sub-servers.
8+
service Status {
9+
rpc GetSubServerState (GetSubServerStatusReq)
10+
returns (GetSubServerStatusResp);
11+
}
12+
13+
message GetSubServerStatusReq {
14+
}
15+
16+
message GetSubServerStatusResp {
17+
// A map of sub-server names to their status.
18+
map<string, SubServerStatus> sub_servers = 1;
19+
}
20+
21+
message SubServerStatus {
22+
// running is true if the sub-server is currently running.
23+
bool running = 1;
24+
25+
// error describes an error that might have resulted in the sub-server not
26+
// starting up properly.
27+
string error = 2;
28+
}

0 commit comments

Comments
 (0)