auth

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryHandlers

type DeliveryHandlers interface {
	Register() echo.HandlerFunc
	Login() echo.HandlerFunc
	UpdateUser() echo.HandlerFunc
	DeleteUser() echo.HandlerFunc
	ListUser() echo.HandlerFunc
	DetailUser() echo.HandlerFunc
	CatchMonster() echo.HandlerFunc
	Me() echo.HandlerFunc
}

type Repository

type Repository interface {
	CreateUser(ctx context.Context, user *domain.User) (*domain.User, error)
	UpdateUser(ctx context.Context, user *domain.UserUpdate) (*domain.UserUpdate, error)
	DeleteUser(ctx context.Context, userID primitive.ObjectID) error
	FetchUsers(ctx context.Context, pq *utils.PaginationQuery) (*domain.UserList, error)
	FindByID(ctx context.Context, userID primitive.ObjectID) (*domain.User, error)
	FindByUsername(ctx context.Context, username string) (*domain.User, error)
	AddMonster(ctx context.Context, userID, monsterID primitive.ObjectID) error
}

type Usecase

type Usecase interface {
	UserRegistration(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)
	UserAuthentication(ctx context.Context, user *domain.User) (*domain.UserWithToken, error)
	UserUpdate(ctx context.Context, user *domain.UserUpdate) (*domain.UserUpdate, error)
	UserDeletion(ctx context.Context, userID primitive.ObjectID) error
	UserList(ctx context.Context, pq *utils.PaginationQuery) (*domain.UserList, error)
	UserCatchMonster(ctx context.Context, userID, monsterID primitive.ObjectID) error
	GetByID(ctx context.Context, userID primitive.ObjectID) (*domain.User, error)
}

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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