Skip to content

Commit fb84496

Browse files
committed
scripts: Include lit subserver status RPC in update_protos.sh
1 parent 50ebfa7 commit fb84496

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 SubServerStatus (SubServerStatusReq) returns (SubServerStatusResp);
10+
}
11+
12+
message SubServerStatusReq {
13+
}
14+
15+
message SubServerStatusResp {
16+
// A map of sub-server names to their status.
17+
map<string, SubServerStatus> sub_servers = 1;
18+
}
19+
20+
message SubServerStatus {
21+
// disabled is true if the sub-server is available in the LiT package but
22+
// has explicitly been disabled.
23+
bool disabled = 1;
24+
25+
// running is true if the sub-server is currently running.
26+
bool running = 2;
27+
28+
// error describes an error that might have resulted in the sub-server not
29+
// starting up properly.
30+
string error = 3;
31+
}

scripts/update_protos.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ curl ${TAPD_URL}/${TAPD_RELEASE_TAG}/taprpc/universerpc/universe.proto --create-
5353

5454
curl ${LIT_URL}/${LIT_RELEASE_TAG}/litrpc/firewall.proto --create-dirs -o protos/lit/${LIT_RELEASE_TAG}/firewall.proto
5555
curl ${LIT_URL}/${LIT_RELEASE_TAG}/litrpc/lit-sessions.proto --create-dirs -o protos/lit/${LIT_RELEASE_TAG}/lit-sessions.proto
56+
curl ${LIT_URL}/${LIT_RELEASE_TAG}/litrpc/lit-status.proto --create-dirs -o protos/lit/${LIT_RELEASE_TAG}/lit-status.proto
5657
curl ${LIT_URL}/${LIT_RELEASE_TAG}/litrpc/lit-autopilot.proto --create-dirs -o protos/lit/${LIT_RELEASE_TAG}/lit-autopilot.proto

0 commit comments

Comments
 (0)