watchtower/wtserver/interface: add DeleteSession + mock impl

This commit is contained in:
Conner Fromknecht
2019-03-19 19:38:34 -07:00
parent 25b2a352cb
commit 8e4a20e1a5
2 changed files with 31 additions and 0 deletions

View File

@@ -63,4 +63,8 @@ type DB interface {
// validates the update against the current SessionInfo stored under the
// update's session id..
InsertStateUpdate(*wtdb.SessionStateUpdate) (uint16, error)
// DeleteSession removes all data associated with a particular session
// id from the tower's database.
DeleteSession(wtdb.SessionID) error
}