Documentation ¶
Index ¶
- type UserRepository
- func (r *UserRepository) DeleteSession(ctx context.Context, field string, val any) error
- func (r *UserRepository) InsertSession(ctx context.Context, sess auth.Session) error
- func (r *UserRepository) InsertUser(ctx context.Context, u entity.User) error
- func (r *UserRepository) SelectSession(ctx context.Context, field string, searchVal any) (auth.Session, error)
- func (r *UserRepository) SelectWhere(ctx context.Context, field string, searchVal any) (entity.User, error)
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 (*UserRepository) InsertSession ¶
func (*UserRepository) InsertUser ¶
func (*UserRepository) SelectSession ¶
func (*UserRepository) SelectWhere ¶
Click to show internal directories.
Click to hide internal directories.