users

package
v0.0.0-...-24757ee Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAccountDoesNotExist  = usersError("the user account with provided email does not exit")
	ErrWrongPassword        = usersError("the provided password is incorrect")
	ErrAccountAlreadyExists = usersError("the user account with provided email already exists")
	ErrNameAlreadyTaken     = usersError("the provided username is already used by someone else")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Queries     *db.Queries
	ArgonParams *argon2id.Params
}

func (*Model) AuthenticateUser

func (m *Model) AuthenticateUser(email, password string) (string, error)

func (*Model) RegisterUser

func (m *Model) RegisterUser(username, email, password string) (string, error)

Jump to

Keyboard shortcuts

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