v1

package
v0.0.0-...-400441b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCityResponse

func NewCityResponse(city domain.City) *cityResponse

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

Jump to

Keyboard shortcuts

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