handlers

package
v0.0.0-...-50592dc Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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