handler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(c *fiber.Ctx) error

HealthCheck handler

func Login

func Login(c *fiber.Ctx) error

Login Handler for POST /auth/login

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) CreateUser

func (h *Handler) CreateUser(c *fiber.Ctx) error

CreateUser Handler for POST /user

func (*Handler) DeleteUser

func (h *Handler) DeleteUser(c *fiber.Ctx) error

DeleteUser delete user

func (*Handler) EditUser

func (h *Handler) EditUser(c *fiber.Ctx) error

EditUser handler for PUT /user/:id

func (*Handler) GetUser

func (h *Handler) GetUser(c *fiber.Ctx) error

GetUser Handler for GET /user/:id

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

Jump to

Keyboard shortcuts

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