pgsql

package
v0.0.0-...-8a5cc0a Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 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) (*twisk.User, error)

FindByAuth finds user by either username or email

func (*User) FindByToken

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

FindByToken finds user by either username or email

func (*User) UpdateLastLogin

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