Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateUser ¶
CreateUser Handler for POST /user
func (*Handler) DeleteUser ¶
DeleteUser delete user
type ServiceHandler ¶
type ServiceHandler struct {
// contains filtered or unexported fields
}
ServiceHandler struct
func (*ServiceHandler) GetWeather ¶
func (h *ServiceHandler) GetWeather(c *fiber.Ctx) error
GetWeather handler for GET /weather/current
type UserHandler ¶
type UserHandler interface { CreateUser(c *fiber.Ctx) error EditUser(c *fiber.Ctx) error GetUser(c *fiber.Ctx) error DeleteUser(c *fiber.Ctx) error }
func NewUserHandler ¶
func NewUserHandler(s user.UserService) UserHandler
type WeatherHandler ¶
type WeatherHandler interface {
GetWeather(c *fiber.Ctx) error
}
WeatherHandler handler for /weather endpoints
func NewWeatherHandler ¶
func NewWeatherHandler(s weather.WeatherService) WeatherHandler
NewWeatherHandler initializer
Click to show internal directories.
Click to hide internal directories.