service

package
v0.0.0-...-e1203f0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 6 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 {
	DB     *sql.DB
	Router *mux.Router
}

func New

func New(db *sql.DB, r *mux.Router) *Server

func (*Server) CreateProduct

func (s *Server) CreateProduct(w http.ResponseWriter, r *http.Request)

func (*Server) DeleteProduct

func (s *Server) DeleteProduct(w http.ResponseWriter, r *http.Request)

func (*Server) GetProduct

func (s *Server) GetProduct(w http.ResponseWriter, r *http.Request)

func (*Server) GetProducts

func (s *Server) GetProducts(w http.ResponseWriter, r *http.Request)

func (*Server) InitializeRoutes

func (s *Server) InitializeRoutes()

func (*Server) UpdateProduct

func (s *Server) UpdateProduct(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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