repository

package
v0.0.0-...-08c5b1d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func NewUserRepository

func NewUserRepository(pgpool *pgxpool.Pool, logger logging.Logger) *UserRepository

func (*UserRepository) DeleteSession

func (r *UserRepository) DeleteSession(ctx context.Context, field string, val any) error

func (*UserRepository) InsertSession

func (r *UserRepository) InsertSession(ctx context.Context, sess auth.Session) error

func (*UserRepository) InsertUser

func (r *UserRepository) InsertUser(ctx context.Context, u entity.User) error

func (*UserRepository) SelectSession

func (r *UserRepository) SelectSession(
	ctx context.Context,
	field string,
	searchVal any,
) (auth.Session, error)

func (*UserRepository) SelectWhere

func (r *UserRepository) SelectWhere(
	ctx context.Context,
	field string,
	searchVal any,
) (entity.User, error)

Jump to

Keyboard shortcuts

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