backendURL generates a URL for the given API path. NOTE: Custom transport handles communication. The host is to create a valid URL for the Go http.Client that is also descriptive in error/logs.
(path string)
| 226 | // NOTE: Custom transport handles communication. The host is to create a valid |
| 227 | // URL for the Go http.Client that is also descriptive in error/logs. |
| 228 | func backendURL(path string) string { |
| 229 | return "http://docker-desktop/" + strings.TrimPrefix(path, "/") |
| 230 | } |