repository

package
v0.0.0-...-ef30428 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(pool *pgxpool.Pool) *Repository

func (*Repository) CreateUser

func (r *Repository) CreateUser(ctx context.Context, user models.User) (models.User, error)

func (*Repository) GetUsersByNicknameOrEmail

func (r *Repository) GetUsersByNicknameOrEmail(ctx context.Context, nickname, email string) ([]models.User, error)

Jump to

Keyboard shortcuts

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