wtdb: add TerminateSession method

This commit is contained in:
Elle Mouton committed 2024-02-20 14:44:11 +02:00
1 parent 41582c0b8b
commit 05c03400a9
3 files changed
+122

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ type DB interface {
// NOTE: An error is not returned if the tower doesn't exist.
RemoveTower(*btcec.PublicKey, net.Addr) error
// TerminateSession sets the given session's status to CSessionTerminal
// meaning that it will not be usable again.
TerminateSession(id wtdb.SessionID) error
// LoadTower retrieves a tower by its public key.
LoadTower(*btcec.PublicKey) (*wtdb.Tower, error)