Use goose for migrations

This commit is contained in:
2021-11-08 22:24:21 +00:00
parent cf1bc70103
commit 5de7d32c30
25 changed files with 134 additions and 145 deletions

View File

@ -1,5 +1,7 @@
package budgeteer
import "git.javil.eu/jacob1123/budgeteer/postgres"
// Token contains data that authenticates a user
type Token interface {
GetUsername() string
@ -11,5 +13,5 @@ type Token interface {
// TokenVerifier verifies a Token
type TokenVerifier interface {
VerifyToken(string) (Token, error)
CreateToken(*User) (string, error)
CreateToken(*postgres.User) (string, error)
}