Add `EnsureJobChannel()` middleware method, intended for `compose/<id>` endpoints. Its purpose is to ensure that the tenant channel set in the request `echo.Context` matches the tenant channel associated with the compose. In case of mismatch, `404` is returned. Add `JobChannel()` method to the worker server implementation for requesting channel associated with the job. |
||
|---|---|---|
| .. | ||
| api | ||
| clienterrors | ||
| client.go | ||
| client_test.go | ||
| json.go | ||
| proxy_test.go | ||
| server.go | ||
| server_test.go | ||