MCPcopy Index your code
hub / github.com/apache/devlake / SetProxy

Method SetProxy

backend/helpers/pluginhelper/api/api_client.go:286–295  ·  view source on GitHub ↗

SetProxy FIXME ...

(proxyUrl string)

Source from the content-addressed store, hash-verified

284
285// SetProxy FIXME ...
286func (apiClient *ApiClient) SetProxy(proxyUrl string) errors.Error {
287 pu, err := url.Parse(proxyUrl)
288 if err != nil {
289 return errors.Convert(err)
290 }
291 if pu.Scheme == "http" || pu.Scheme == "socks5" {
292 apiClient.client.Transport.(*http.Transport).Proxy = http.ProxyURL(pu)
293 }
294 return nil
295}
296
297// SetLogger FIXME ...
298func (apiClient *ApiClient) SetLogger(logger log.Logger) {

Callers 1

NewApiClientFunction · 0.95

Implementers 2

ApiClientbackend/helpers/pluginhelper/api/api_c
refreshApiClientbackend/plugins/github/token/refresh_a

Calls 1

ConvertMethod · 0.45

Tested by

no test coverage detected