MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / newControllerClientRouter

Function newControllerClientRouter

pkg/controller/client/rpc_test.go:123–127  ·  view source on GitHub ↗
(withError bool)

Source from the content-addressed store, hash-verified

121}
122
123func newControllerClientRouter(withError bool) *mux.Router {
124 router := mux.NewRouter()
125 router.HandleFunc("/v1/functions/{functionName}/invocations", InvokeHandler(withError)).Methods("POST")
126 return router
127}
128
129func InvokeHandler(withError bool) func(w http.ResponseWriter, r *http.Request) {
130 if withError {

Callers 1

TestInvokeFunction · 0.85

Calls 2

InvokeHandlerFunction · 0.85
HandleFuncMethod · 0.80

Tested by

no test coverage detected