(c *routing.Context, ctx InvokeContext)
| 121 | } |
| 122 | |
| 123 | func (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 | |
| 133 | func (controller *Controller) ListRuntimesHandler(c *routing.Context) error { |
| 134 | runtimes := controller.runtimeDispatcher.RuntimeList() |
no test coverage detected