diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-02 14:00:28 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-02 14:00:28 -0500 |
commit | 9fe48ae66c2cc8d6b46e44ae35e9447ab51d9dd6 (patch) | |
tree | 94aff558aedaf3c1f7452983887b6f3479c9cef7 /db/db.go | |
parent | 4343925a09c1fd34da4b352ae9fa2510397ccdcd (diff) |
add user.go
Diffstat (limited to 'db/db.go')
-rw-r--r-- | db/db.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |