controllers

package
v0.0.0-...-50396a8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 11 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 health checks

Types

type Server

type Server struct {
	Router *fiber.App
}

Server represents the struct of our server.

func (*Server) GetAllShops

func (s *Server) GetAllShops(c *fiber.Ctx) error

GetAllShops returns a list of all the shops.

func (*Server) GetAmountBy

func (s *Server) GetAmountBy(c *fiber.Ctx) error

GetAmountBy returns the sales amount of each shop.

func (*Server) Run

func (s *Server) Run(port string)

Run API Server endpoint.

Jump to

Keyboard shortcuts

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