MCPcopy Create free account
hub / github.com/dhij/ecomm / NewHandler

Function NewHandler

ecomm-api/handler/handler.go:23–29  ·  view source on GitHub ↗
(client pb.EcommClient, secretKey string)

Source from the content-addressed store, hash-verified

21}
22
23func NewHandler(client pb.EcommClient, secretKey string) *handler {
24 return &handler{
25 ctx: context.Background(),
26 client: client,
27 TokenMaker: token.NewJWTMaker(secretKey),
28 }
29}
30
31func (h *handler) createProduct(w http.ResponseWriter, r *http.Request) {
32 var p ProductReq

Callers 1

mainFunction · 0.92

Calls 1

NewJWTMakerFunction · 0.92

Tested by

no test coverage detected