user

package
v0.0.0-...-eeb60d1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGetUserByEmail = errors.New("Could not get user with given email address")
View Source
var ErrNilUserDatabase = errors.New("User database should not be nil")

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func NewUserRepository

func NewUserRepository(db database.Database) (*UserRepository, error)

func (*UserRepository) CreateUser

CreateUser Creates new User

func (*UserRepository) GetUserByEmail

func (r *UserRepository) GetUserByEmail(email string) (*models.UserWithPassword, error)

GetUserByEmail get single user by email address

func (*UserRepository) GetUserList

func (r *UserRepository) GetUserList() ([]models.User, error)

func (*UserRepository) UpdateUserLastLogin

func (r *UserRepository) UpdateUserLastLogin(userId int) error

Jump to

Keyboard shortcuts

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