Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("user does not exist")
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { CreateUser(username, password string) error FindUserByUsername(username string) (models.User, error) DeleteUserTokensAndWriteNew(userID string, accessToken, refreshToken models.Token) error CheckTokenExists(token string) (bool, error) DeleteAllUserTokens(userID string) error ReplaceUserAccessToken(accessToken models.Token) error }
Click to show internal directories.
Click to hide internal directories.