user

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*dbutil.DB
}

DB represents the client for user table

func NewDB

func NewDB() *DB

NewDB returns a new user database instance

func (*DB) FindByRefreshToken

func (d *DB) FindByRefreshToken(ctx context.Context, db *gorm.DB, token string) (*model.User, error)

FindByRefreshToken queries for single user by refresh token

func (*DB) FindByUsername

func (d *DB) FindByUsername(ctx context.Context, db *gorm.DB, uname string) (*model.User, error)

FindByUsername queries for single user by username

Jump to

Keyboard shortcuts

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