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) }
Click to show internal directories.
Click to hide internal directories.