(options ...interface{})
| 12 | ) |
| 13 | |
| 14 | func GetHttpClient(options ...interface{}) http.Client { |
| 15 | timeout0 := time.Minute * 1 |
| 16 | if len(options) > 0 { |
| 17 | timeout0 = options[0].(time.Duration) |
| 18 | } |
| 19 | return http.Client{ |
| 20 | Timeout: timeout0, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // PostJSONNoSpan performs a POST request with JSON on an internal HTTP API |
| 25 | func PostJSONNoSpan( |
no outgoing calls
no test coverage detected