mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
57 lines
No EOL
1.3 KiB
Protocol Buffer
57 lines
No EOL
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package litrpc;
|
|
|
|
option go_package = "github.com/lightninglabs/lightning-terminal/litrpc";
|
|
|
|
service Proxy {
|
|
/* litcli: `getinfo`
|
|
GetInfo returns general information concerning the LiTd node.
|
|
*/
|
|
rpc GetInfo (GetInfoRequest) returns (GetInfoResponse);
|
|
|
|
/* litcli: `stop`
|
|
StopDaemon will send a shutdown request to the interrupt handler,
|
|
triggering a graceful shutdown of the daemon.
|
|
*/
|
|
rpc StopDaemon (StopDaemonRequest) returns (StopDaemonResponse);
|
|
|
|
/* litcli: `bakesupermacaroon`
|
|
BakeSuperMacaroon bakes a new macaroon that includes permissions for
|
|
all the active daemons that LiT is connected to.
|
|
*/
|
|
rpc BakeSuperMacaroon (BakeSuperMacaroonRequest)
|
|
returns (BakeSuperMacaroonResponse);
|
|
}
|
|
|
|
message BakeSuperMacaroonRequest {
|
|
/*
|
|
The root key ID suffix is the 4-byte suffix of the root key ID that will
|
|
be used to create the macaroon.
|
|
*/
|
|
uint32 root_key_id_suffix = 1;
|
|
|
|
/*
|
|
Whether the macaroon should only contain read permissions.
|
|
*/
|
|
bool read_only = 2;
|
|
}
|
|
|
|
message BakeSuperMacaroonResponse {
|
|
// The hex encoded macaroon.
|
|
string macaroon = 1;
|
|
}
|
|
|
|
message StopDaemonRequest {
|
|
}
|
|
|
|
message StopDaemonResponse {
|
|
}
|
|
|
|
message GetInfoRequest {
|
|
}
|
|
|
|
message GetInfoResponse {
|
|
// The version of the LiTd software that the node is running.
|
|
string version = 1;
|
|
} |