Documentation ¶
Index ¶
- func NewAuthUsecase(cfg *config.Config, authRepo auth.Repository, ...) auth.Usecase
- type AuthUsecase
- func (u *AuthUsecase) GetByID(ctx context.Context, userID primitive.ObjectID) (*domain.User, error)
- func (u *AuthUsecase) UserAuthentication(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)
- func (u *AuthUsecase) UserCatchMonster(ctx context.Context, userID primitive.ObjectID, monsterID primitive.ObjectID) error
- func (u *AuthUsecase) UserDeletion(ctx context.Context, userID primitive.ObjectID) error
- func (u *AuthUsecase) UserList(ctx context.Context, pq *utils.PaginationQuery) (*domain.UserList, error)
- func (u *AuthUsecase) UserRegistration(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)
- func (u *AuthUsecase) UserUpdate(ctx context.Context, user *domain.UserUpdate) (*domain.UserUpdate, error)
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) UserAuthentication ¶
func (u *AuthUsecase) UserAuthentication(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)
func (*AuthUsecase) UserCatchMonster ¶
func (*AuthUsecase) UserDeletion ¶
func (*AuthUsecase) UserList ¶
func (u *AuthUsecase) UserList(ctx context.Context, pq *utils.PaginationQuery) (*domain.UserList, error)
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)
Click to show internal directories.
Click to hide internal directories.