debian-forge-composer/internal/worker
Gianluca Zuccarelli 113cda7d39 internal/worker: register status middleware
Register the custom middleware function to the worker
server. This function is responsible for recording all
the status codes of all the server's endpoints.

Due to a bug with echo/v4, a request to an endpoint using
the incorrect method should return a `405` error but returns
a `404` error instead when a middleware function is registered.
The worker `server_test` has been updated to reflect this.
2022-11-30 11:14:29 +01:00
..
api api/{cloud,worker}: used channel name based on JWT claims for new jobs 2022-03-08 12:07:00 +01:00
clienterrors osbuild-worker: add ostree resolve job 2022-10-19 18:14:10 +02:00
client.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
client_test.go worker: define job types as constants 2022-06-10 14:48:18 +01:00
json.go internal/worker: add rhsm to ostree resolve job 2022-10-28 16:14:30 +02:00
json_test.go worker: Remove ellipsis operator from clienterrors.Error 2022-08-03 13:51:52 +02:00
proxy_test.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
server.go internal/worker: register status middleware 2022-11-30 11:14:29 +01:00
server_test.go internal/worker: register status middleware 2022-11-30 11:14:29 +01:00