Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HandlerGraphSet = wire.NewSet( NewProductCtlHandler, NewOrderCtlHandler, )
Functions ¶
func JSONError ¶
func JSONError(w http.ResponseWriter, err interface{}, code int)
Types ¶
type OrderCtlHandler ¶
type OrderCtlHandler struct {
// contains filtered or unexported fields
}
func NewOrderCtlHandler ¶
func NewOrderCtlHandler( orderService *services.OrderService, ) *OrderCtlHandler
func (*OrderCtlHandler) AddOrder ¶
func (o *OrderCtlHandler) AddOrder( req *http.Request, ) (interface{}, error)
func (*OrderCtlHandler) UpdateOrderStatus ¶
func (o *OrderCtlHandler) UpdateOrderStatus( req *http.Request, ) (interface{}, error)
type ProductCtlHandler ¶
type ProductCtlHandler struct {
// contains filtered or unexported fields
}
func NewProductCtlHandler ¶
func NewProductCtlHandler( ctlService *services.ProductCtlServices, ) *ProductCtlHandler
func (*ProductCtlHandler) AddProduct ¶
func (p *ProductCtlHandler) AddProduct( req *http.Request, ) (interface{}, error)
func (*ProductCtlHandler) GetProduct ¶
func (p *ProductCtlHandler) GetProduct( req *http.Request, ) (interface{}, error)
func (*ProductCtlHandler) ListProducts ¶
func (p *ProductCtlHandler) ListProducts( req *http.Request, ) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.