repo

package
v0.0.0-...-028896a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 9 Imported by: 0

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
}

func New

func New(conf *config.DB) Repo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL