v1

package
v0.0.0-...-b6cb40f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserResponse

func NewUserResponse(user domain.User) *userResponse

NewUserResponse creates a new instance of UserResponse

Types

type UserControllerV1

type UserControllerV1 struct {
	// contains filtered or unexported fields
}

func New

func New(uc domain.UserUsecase, server *http.Http) *UserControllerV1

NewUserControllerV1 creates a new instance of UserControllerV1

func (*UserControllerV1) GetByID

func (uc *UserControllerV1) GetByID(ctx *fiber.Ctx) error

GetByID handles GET /users request

func (*UserControllerV1) InitRoutes

func (uc *UserControllerV1) InitRoutes(routeV1 fiber.Router, token token.Token)

InitRoutes registers all routes for version 1

func (*UserControllerV1) Update

func (uc *UserControllerV1) Update(ctx *fiber.Ctx) error

Update handles PUT /users request

Jump to

Keyboard shortcuts

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