Documentation ¶
Index ¶
- func NewAddrResponse(addr domain.Address) *addrResponse
- type AddressControllerV1
- func (ac *AddressControllerV1) Create(ctx *fiber.Ctx) error
- func (ac *AddressControllerV1) Delete(ctx *fiber.Ctx) error
- func (ac *AddressControllerV1) GetAll(ctx *fiber.Ctx) error
- func (ac *AddressControllerV1) GetByID(ctx *fiber.Ctx) error
- func (ac *AddressControllerV1) InitRoutes(routeV1 fiber.Router, token token.Token)
- func (ac *AddressControllerV1) Update(ctx *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddrResponse ¶
NewAddrResponse creates a new instance of AddrResponse
Types ¶
type AddressControllerV1 ¶
type AddressControllerV1 struct {
// contains filtered or unexported fields
}
AddressControllerV1 is a struct for version 1 of AddressController
func New ¶
func New(uc domain.AddressUseCase, server *http.Http) *AddressControllerV1
NewAddressControllerV1 creates a new instance of AddressControllerV1
func (*AddressControllerV1) Create ¶
func (ac *AddressControllerV1) Create(ctx *fiber.Ctx) error
Create handles POST /users/Addresses request
func (*AddressControllerV1) Delete ¶
func (ac *AddressControllerV1) Delete(ctx *fiber.Ctx) error
Delete handles DELETE /users/Addresses request
func (*AddressControllerV1) GetAll ¶
func (ac *AddressControllerV1) GetAll(ctx *fiber.Ctx) error
GetAll handles GET /users/Addresses request
func (*AddressControllerV1) GetByID ¶
func (ac *AddressControllerV1) GetByID(ctx *fiber.Ctx) error
GetByID handles GET /users/Addresses request
func (*AddressControllerV1) InitRoutes ¶
func (ac *AddressControllerV1) InitRoutes(routeV1 fiber.Router, token token.Token)
func (*AddressControllerV1) Update ¶
func (ac *AddressControllerV1) Update(ctx *fiber.Ctx) error
Update handles PUT /users/Addresses request
Click to show internal directories.
Click to hide internal directories.