wtclientrpc: add excludeExhaustedSessions option

Add a new `exclude_exhausted_sessions` field to the relevant
wtclient.proto requests. This was chosen instead of "include_exhausted"
so as to not break the API.
This commit is contained in:
Elle Mouton committed 2023-03-20 20:14:01 +02:00
1 parent 1af31bfea7
commit e6494889b0
3 files changed
+175 -125

No files matched your search

+8
View File
@@ -68,6 +68,10 @@ message GetTowerInfoRequest {
// Whether we should include sessions with the watchtower in the response.
bool include_sessions = 2;
// Whether to exclude exhausted sessions in the response info. This option
// is only meaningful if include_sessions is true.
bool exclude_exhausted_sessions = 3;
}
message TowerSession {
@@ -143,6 +147,10 @@ message TowerSessionInfo {
message ListTowersRequest {
// Whether we should include sessions with the watchtower in the response.
bool include_sessions = 1;
// Whether to exclude exhausted sessions in the response info. This option
// is only meaningful if include_sessions is true.
bool exclude_exhausted_sessions = 2;
}
message ListTowersResponse {