repository

package
v0.0.0-...-382c8a7 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(db *sqlx.DB) repository.User

Types

type Repository

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

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