users

package
v0.0.0-...-f07e814 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func New

func New(db db.DBops) *Repo

func (*Repo) CreateUser

func (r *Repo) CreateUser(ctx context.Context, info structs.RegisterUserInfo) (int, error)

CreateUser create user

func (*Repo) GetUserByLogin

func (r *Repo) GetUserByLogin(ctx context.Context, login string) (*structs.User, error)

GetUserByLogin get user

func (*Repo) VerifyPassword

func (r *Repo) VerifyPassword(ctx context.Context, info structs.AuthUserInfo) (bool, error)

VerifyPassword checks whether the password is correct or no.

Jump to

Keyboard shortcuts

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