Documentation ¶
Index ¶
- func NewKratosHookHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, ...)
- func NewOrgHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, ...)
- func NewUserHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, ...)
- type KratosHookHandler
- type OrgHandler
- func (h *OrgHandler) Create(c echo.Context) wrapper.Response
- func (h *OrgHandler) Delete(c echo.Context) wrapper.Response
- func (h *OrgHandler) Fetch(c echo.Context) wrapper.Response
- func (h *OrgHandler) GetByID(c echo.Context) wrapper.Response
- func (h *OrgHandler) Invite(c echo.Context) wrapper.Response
- func (h *OrgHandler) Update(c echo.Context) wrapper.Response
- type UserHandler
- func (h *UserHandler) Create(c echo.Context) wrapper.Response
- func (h *UserHandler) Delete(c echo.Context) wrapper.Response
- func (h *UserHandler) Fetch(c echo.Context) wrapper.Response
- func (h *UserHandler) GetByID(c echo.Context) wrapper.Response
- func (h *UserHandler) Update(c echo.Context) wrapper.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKratosHookHandler ¶
func NewKratosHookHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, userUsecase usecases.UserUsecase)
NewKratosHookHandler will initialize the user resources endpoint
func NewOrgHandler ¶
func NewOrgHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, orgUsecase usecases.OrgUsecase)
NewOrgHandler will initialize the org resources endpoint
func NewUserHandler ¶
func NewUserHandler(g *echo.Group, middManager *middlewares.MiddlewareManager, userUsecase usecases.UserUsecase)
NewUserHandler will initialize the user resources endpoint
Types ¶
type KratosHookHandler ¶
type KratosHookHandler struct {
UserUC usecases.UserUsecase
}
func (*KratosHookHandler) AfterRegistration ¶
func (h *KratosHookHandler) AfterRegistration(c echo.Context) wrapper.Response
Create will store the user by given request body
func (*KratosHookHandler) AfterSettings ¶
func (h *KratosHookHandler) AfterSettings(c echo.Context) wrapper.Response
type OrgHandler ¶
type OrgHandler struct {
OrgUC usecases.OrgUsecase
}
func (*OrgHandler) Create ¶
func (h *OrgHandler) Create(c echo.Context) wrapper.Response
Create will store the Org by given request body
func (*OrgHandler) Delete ¶
func (h *OrgHandler) Delete(c echo.Context) wrapper.Response
Delete will delete org by given param
func (*OrgHandler) Fetch ¶
func (h *OrgHandler) Fetch(c echo.Context) wrapper.Response
Fetch will fetch the Org
func (*OrgHandler) GetByID ¶
func (h *OrgHandler) GetByID(c echo.Context) wrapper.Response
GetByID will get Org by given id
func (*OrgHandler) Invite ¶
func (h *OrgHandler) Invite(c echo.Context) wrapper.Response
func (*OrgHandler) Update ¶
func (h *OrgHandler) Update(c echo.Context) wrapper.Response
Update will get org by given request body
type UserHandler ¶
type UserHandler struct {
UserUC usecases.UserUsecase
}
func (*UserHandler) Create ¶
func (h *UserHandler) Create(c echo.Context) wrapper.Response
Create will store the user by given request body
func (*UserHandler) Delete ¶
func (h *UserHandler) Delete(c echo.Context) wrapper.Response
Delete will delete user by given param
func (*UserHandler) Fetch ¶
func (h *UserHandler) Fetch(c echo.Context) wrapper.Response
Fetch will fetch the user
func (*UserHandler) GetByID ¶
func (h *UserHandler) GetByID(c echo.Context) wrapper.Response
GetUserInfo godoc @Summary Get user info @Description Get user info ID @Tags users @Accept json @Produce json @Param userId path int true "User ID" @Success 200 {object} wrapper.SuccessResponse{data=domains.User} @Router /users/{userId} [get]
func (*UserHandler) Update ¶
func (h *UserHandler) Update(c echo.Context) wrapper.Response
Update will get user by given request body