pgsql

package
v0.0.0-...-eb9f531 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct{}

User represents the client for user table

func NewUser

func NewUser() *User

NewUser returns a new User instance

func (*User) FindByAuth

func (s *User) FindByAuth(cl orm.DB, auth string) (*model.User, error)

FindByAuth finds user by either username or email

func (*User) FindByToken

func (s *User) FindByToken(cl orm.DB, token string) (*model.User, error)

FindByToken finds user by either username or email

func (*User) UpdateLastLogin

func (s *User) UpdateLastLogin(cl orm.DB, user *model.User) error

UpdateLastLogin updates user's last login details

Jump to

Keyboard shortcuts

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