lnrpc+lncli: add TerminateSession command

This commit is contained in:
Elle Mouton committed 2024-02-20 14:44:38 +02:00
1 parent 24702ede14
commit 5d16491c13
9 files changed
+657 -216

No files matched your search

+42
View File
@@ -171,6 +171,39 @@
]
}
},
"/v2/watchtower/client/sessions/terminate/{session_id}": {
"post": {
"summary": "lncli: `wtclient session terminate`\nTerminate terminates the given session and marks it as terminal so that\nit is not used for backups anymore.",
"operationId": "WatchtowerClient_TerminateSession",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/wtclientrpcTerminateSessionResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "session_id",
"description": "The ID of the session that should be terminated.",
"in": "path",
"required": true,
"type": "string",
"format": "byte"
}
],
"tags": [
"WatchtowerClient"
]
}
},
"/v2/watchtower/client/stats": {
"get": {
"summary": "lncli: `wtclient stats`\nStats returns the in-memory statistics of the client since startup.",
@@ -400,6 +433,15 @@
}
}
},
"wtclientrpcTerminateSessionResponse": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "A string describing the action that took place."
}
}
},
"wtclientrpcTower": {
"type": "object",
"properties": {