userrepository

package
v0.0.0-...-20693d9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 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 CreateUserInput

type CreateUserInput struct {
	Username     string
	Email        string
	AuthProvider string

	Name      *string
	GithubID  *string
	AvatarUrl *string
	Password  *string
}

type UserRepository

type UserRepository interface {
	GetUser(ctx context.Context, id string) (*models.User, errs.Error)
	GetUserByGithubID(ctx context.Context, id string) (*models.User, errs.Error)
	GetUserByEmail(ctx context.Context, email string) (*models.User, errs.Error)
	CreateUser(ctx context.Context, input CreateUserInput, uow *repository.UowTx) (*models.User, errs.Error)
}

func New

func New(db *db.DB, logger *slog.Logger) UserRepository

Jump to

Keyboard shortcuts

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