package auth import ( "github.com/aziis98/lupus-lite/database" "github.com/aziis98/lupus-lite/model" ) type AuthService interface { Register(username, password string) error Login(username, password string) (string, error) UserForSession(token string) (string, error) GetUser(username string) (model.User, error) } func NewInMemoryAuthService(db database.Database) AuthService { return &memAuth{db, map[string]string{}} }