usecase

package
v0.0.0-...-2f27ceb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthUsecase

func NewAuthUsecase(cfg *config.Config, authRepo auth.Repository, monsterRepo monster.MonsterRepository, log logger.Logger) auth.Usecase

Types

type AuthUsecase

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

func (*AuthUsecase) GetByID

func (u *AuthUsecase) GetByID(ctx context.Context, userID primitive.ObjectID) (*domain.User, error)

func (*AuthUsecase) UserAuthentication

func (u *AuthUsecase) UserAuthentication(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)

func (*AuthUsecase) UserCatchMonster

func (u *AuthUsecase) UserCatchMonster(ctx context.Context, userID primitive.ObjectID, monsterID primitive.ObjectID) error

func (*AuthUsecase) UserDeletion

func (u *AuthUsecase) UserDeletion(ctx context.Context, userID primitive.ObjectID) error

func (*AuthUsecase) UserList

func (*AuthUsecase) UserRegistration

func (u *AuthUsecase) UserRegistration(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)

func (*AuthUsecase) UserUpdate

func (u *AuthUsecase) UserUpdate(ctx context.Context, user *domain.UserUpdate) (*domain.UserUpdate, error)

Jump to

Keyboard shortcuts

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