summaryrefslogtreecommitdiff
path: root/db/db.go
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-02 14:20:21 -0500
committersanine-a <sanine.not@pm.me>2023-05-02 14:20:21 -0500
commitad6a617c12d9b341be1357dcbb6ab58febe32ee8 (patch)
tree08fb50ad9ddc17c911ae175c2a62a463d67160de /db/db.go
parente365e8c2fd4e3a595c696849734236008fc67e1f (diff)
add TouchSession
Diffstat (limited to 'db/db.go')
-rw-r--r--db/db.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/db.go b/db/db.go
index 87784ff..3a48858 100644
--- a/db/db.go
+++ b/db/db.go
@@ -50,6 +50,7 @@ type Model interface {
CreateSession(user User) (Session, error)
DeleteSession(session Session) error
+ TouchSession(session Session) error
CheckSession(session Session) (bool, error)
CleanSessions(maxIdle time.Duration) error
AllSessions() ([]Session, error)