(envDialTimeout string)
| 460 | } |
| 461 | |
| 462 | func dialTimeout(envDialTimeout string) time.Duration { |
| 463 | dialTimeout := DefaultDialTimeout |
| 464 | if timeout, err := strconv.Atoi(envDialTimeout); err == nil { |
| 465 | dialTimeout = time.Duration(timeout) * time.Second |
| 466 | } |
| 467 | return dialTimeout |
| 468 | } |
| 469 | |
| 470 | func (gateway *Gateway) SetTrustedCerts(certificates []tls.Certificate) { |
| 471 | gateway.trustedCerts = certificates |
no outgoing calls
no test coverage detected