adapters

package
v0.0.0-...-04d14b8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPgxRepository

func NewPgxRepository(pool *pgxpool.Pool) models.UserRepository

Types

type PgxUsersRepository

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

func (*PgxUsersRepository) CreateUser

func (s *PgxUsersRepository) CreateUser(user *models.User) error

func (*PgxUsersRepository) GetUser

func (s *PgxUsersRepository) GetUser(userId models.EntityId) (*models.User, error)

func (*PgxUsersRepository) ListUsers

func (s *PgxUsersRepository) ListUsers() ([]*models.User, error)

func (*PgxUsersRepository) RemoveUser

func (s *PgxUsersRepository) RemoveUser(userId models.EntityId) error

Jump to

Keyboard shortcuts

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