postgres

package
v0.0.0-...-943fa91 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo struct {
	*dbrepo.Base
}

func NewUserRepo

func NewUserRepo(db *sql.DB) *UserRepo

func (*UserRepo) CreateUser

func (r *UserRepo) CreateUser(ctx context.Context, user auth.User) error

func (*UserRepo) FindUserByID

func (r *UserRepo) FindUserByID(ctx context.Context, id string) (auth.User, error)

func (*UserRepo) FindUserByProviderUserID

func (r *UserRepo) FindUserByProviderUserID(ctx context.Context, providerUserID string) (auth.User, error)

func (*UserRepo) UpdateUser

func (r *UserRepo) UpdateUser(ctx context.Context, user auth.User) error

Jump to

Keyboard shortcuts

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