pgsql

package
v0.0.0-...-faa3d42 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 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) (*easypay.User, error)

FindByAuth finds user by either username or email

func (*User) FindByToken

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

FindByToken finds user by either username or email

func (*User) UpdateLastLogin

func (s *User) UpdateLastLogin(cl orm.DB, user *easypay.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