Skip to content

Commit 6c3fa5a

Browse files
committed
litrpc: add cli directives to Autopilot service
1 parent de3e492 commit 6c3fa5a

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

litrpc/lit-autopilot.pb.go

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

litrpc/lit-autopilot.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,31 @@ package litrpc;
77
option go_package = "github.com/lightninglabs/lightning-terminal/litrpc";
88

99
service Autopilot {
10+
/* litcli: `autopilot features`
11+
ListAutopilotFeatures fetches all the features supported by the Autopilot
12+
server along with the rules that we need to support in order to subscribe
13+
to those features.
14+
*/
1015
rpc ListAutopilotFeatures (ListAutopilotFeaturesRequest)
1116
returns (ListAutopilotFeaturesResponse);
1217

18+
/* litcli: `autopilot add`
19+
AddAutopilotSession creates a new LNC session and attempts to register it
20+
with the Autopilot server.
21+
*/
1322
rpc AddAutopilotSession (AddAutopilotSessionRequest)
1423
returns (AddAutopilotSessionResponse);
1524

25+
/* litcli: `autopilot list`
26+
ListAutopilotSessions lists all the sessions that are of type
27+
TypeAutopilot.
28+
*/
1629
rpc ListAutopilotSessions (ListAutopilotSessionsRequest)
1730
returns (ListAutopilotSessionsResponse);
1831

32+
/* litcli: `autopilot revoke`
33+
RevokeAutopilotSession revokes an Autopilot session.
34+
*/
1935
rpc RevokeAutopilotSession (RevokeAutopilotSessionRequest)
2036
returns (RevokeAutopilotSessionResponse);
2137
}
@@ -101,6 +117,9 @@ message ListAutopilotFeaturesResponse {
101117
}
102118

103119
message RevokeAutopilotSessionRequest {
120+
/*
121+
The local static public key of the Autopilot session to be revoked.
122+
*/
104123
bytes local_public_key = 1;
105124
}
106125

litrpc/lit-autopilot_grpc.pb.go

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

0 commit comments

Comments
 (0)