migrations and logs

This commit is contained in:
boufni95 2023-12-01 16:43:02 +01:00
parent db08370d5c
commit 03f803c4f4
11 changed files with 2353 additions and 2121 deletions

View file

@ -304,5 +304,11 @@ service LightningPub {
option (http_route) = "/api/user/operations/sub";
option (nostr) = true;
}
rpc GetMigrationUpdate(structs.Empty) returns (stream structs.MigrationUpdate){
option (auth_type) = "User";
option (http_method) = "post";
option (http_route) = "/api/user/migrations/sub";
option (nostr) = true;
}
// </User>
}

View file

@ -264,4 +264,16 @@ message GetProductBuyLinkResponse {
message LiveUserOperation {
UserOperation operation = 1;
}
message MigrationUpdate {
optional ClosureMigration closure = 1;
optional RelaysMigration relays = 2;
}
message ClosureMigration {
int64 closes_at_unix = 1;
}
message RelaysMigration {
repeated string relays = 1;
}