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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddrResponse

func NewAddrResponse(addr domain.Address) *addrResponse

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

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

Jump to

Keyboard shortcuts

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