Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCityResponse ¶
NewCityResponse creates a new instance of CityResponse
Types ¶
type CityControllerV1 ¶
type CityControllerV1 struct {
// contains filtered or unexported fields
}
CityControllerV1 is a struct for version 1 of CityController
func New ¶
func New(uc domain.CityUsecase, server *http.Http) *CityControllerV1
New creates a new instance of CityControllerV1
func (*CityControllerV1) GetAll ¶
func (cc *CityControllerV1) GetAll(ctx *fiber.Ctx) error
GetAll is a function to get all cities
func (*CityControllerV1) GetByID ¶
func (cc *CityControllerV1) GetByID(ctx *fiber.Ctx) error
GetByID is a function to get city by id
func (*CityControllerV1) InitRoutes ¶
func (cc *CityControllerV1) InitRoutes(routeV1 fiber.Router)
InitRoutes registers all routes for version 1
Click to show internal directories.
Click to hide internal directories.