From 9fe48ae66c2cc8d6b46e44ae35e9447ab51d9dd6 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 2 May 2023 14:00:28 -0500 Subject: add user.go --- db/db.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'db/db.go') diff --git a/db/db.go b/db/db.go index a9a9a2e..87784ff 100644 --- a/db/db.go +++ b/db/db.go @@ -41,8 +41,10 @@ type Model interface { GetSchemaVersion() (int, error) CreateUser(username, password string) (User, error) + DeleteUser(user User) error SetPassword(user User, password string) error AuthenticateUser(username, password string) (User, error) + GetByUsername(username string) (User, error) GetById(id string) (User, error) AllUsers() ([]User, error) -- cgit v1.2.1