debian-forge-composer/internal/worker
Michael Vogt 2442baefde worker: move api.BasePath setup to the start of the funcs
I find it slightly eaiser to read this code when
`api.BasePath = conf.BasePath` is right at the top as it's
unrelated to the parsing code below.

Note that the code itself is problematic:
- api.BasePath is global but client is not, this means that
  multiple client with different configs will result in
  api.BasePath being potentially wrong
- api.BasePath is set in a non-thread safe manner

Changing is a bigger job but we might consider it (IMHO).
2024-08-28 17:17:56 +02:00
..
api worker: add ability to track workers serverside 2023-12-06 17:22:36 +01:00
clienterrors clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
client.go worker: move api.BasePath setup to the start of the funcs 2024-08-28 17:17:56 +02:00
client_test.go worker: let client register itself with the worker server 2023-12-06 17:22:36 +01:00
json.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
json_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
proxy_test.go worker: add proxy support to composer and oauth calls 2022-05-03 06:19:31 +01:00
server.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
server_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00