handlers

package
v0.0.0-...-7ad9461 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(logger *zap.Logger, catalogService *services.CatalogService) *Server

func (*Server) GetAllCatalogItems

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

GET: /api/v1/catalog

func (*Server) GetCatalogItem

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

GET: /api/v1/catalog/1

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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