(timeout *time.Duration)
| 28 | } |
| 29 | |
| 30 | func httpClient(timeout *time.Duration) *http.Client { |
| 31 | if timeout == nil { |
| 32 | t := 45 * time.Second |
| 33 | timeout = &t |
| 34 | } |
| 35 | |
| 36 | return &http.Client{ |
| 37 | Timeout: *timeout, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func httpsClient(insecureSkipVerify bool, rootCAs *x509.CertPool, cert *tls.Certificate, timeout *time.Duration) *http.Client { |
| 42 | client := httpClient(timeout) |
no outgoing calls
no test coverage detected
searching dependent graphs…