Documentation ¶
Index ¶
- type UserHandler
- func (uh *UserHandler) Create(c echo.Context) error
- func (uh *UserHandler) Delete(c echo.Context) error
- func (uh *UserHandler) GetByID(c echo.Context) error
- func (uh *UserHandler) RegisterRoutes(e *echo.Echo)
- func (uh *UserHandler) Token(c echo.Context) error
- func (uh *UserHandler) Update(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
UserHandler represent the http handler for user
func NewUserHandler ¶
func NewUserHandler(us domain.UserUsecase, authenticator *auth.Authenticator, v *web.AppValidator, logger *zap.Logger, tracer trace.Tracer) *UserHandler
NewUserHandler will initialize the user/ resources endpoint
func (*UserHandler) Create ¶
func (uh *UserHandler) Create(c echo.Context) error
Create will store the User by given request body
func (*UserHandler) Delete ¶
func (uh *UserHandler) Delete(c echo.Context) error
Delete will delete User by given id
func (*UserHandler) GetByID ¶
func (uh *UserHandler) GetByID(c echo.Context) error
GetByID will get user by given id
func (*UserHandler) RegisterRoutes ¶
func (uh *UserHandler) RegisterRoutes(e *echo.Echo)
RegisterRoutes registers routes for a path with matching handler
func (*UserHandler) Token ¶
func (uh *UserHandler) Token(c echo.Context) error
Token will return jwt token by given credentials
func (*UserHandler) Update ¶
func (uh *UserHandler) Update(c echo.Context) error
Update will update the User by given request body
Click to show internal directories.
Click to hide internal directories.