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

Method Invoke

pkg/controller/handler.go:123–131  ·  view source on GitHub ↗
(c *routing.Context, ctx InvokeContext)

Source from the content-addressed store, hash-verified

121}
122
123func (controller *Controller) Invoke(c *routing.Context, ctx InvokeContext) {
124 if ctx.InvokeType == api.InvokeTypeEvent {
125 go controller.Do(&ctx)
126 c.SetStatusCode(http.StatusCreated)
127 } else {
128 controller.Do(&ctx)
129 makeHTTPResponse(c, &ctx)
130 }
131}
132
133func (controller *Controller) ListRuntimesHandler(c *routing.Context) error {
134 runtimes := controller.runtimeDispatcher.RuntimeList()

Callers 1

InvokeHandlerMethod · 0.95

Calls 3

DoMethod · 0.95
makeHTTPResponseFunction · 0.85
SetStatusCodeMethod · 0.45

Tested by

no test coverage detected