http

package
v0.0.0-...-0efd02e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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