(httpClient *http.Client, host string)
| 201 | } |
| 202 | |
| 203 | func NewDetector(httpClient *http.Client, host string) Detector { |
| 204 | return &detector{ |
| 205 | httpClient: httpClient, |
| 206 | host: host, |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | // NewCachedDetector returns a Detector that probes the given host and caches detection results for the given TTL. |
| 211 | func NewCachedDetector(httpClient *http.Client, host string, ttl time.Duration) Detector { |
no outgoing calls