Issues an HTTP request, distributing more load to relatively unloaded instances.
(req *http.Request, timeout time.Duration)
| 286 | |
| 287 | // Issues an HTTP request, distributing more load to relatively unloaded instances. |
| 288 | func (pool *LoadBalancedPool) DoWithTimeout(req *http.Request, |
| 289 | timeout time.Duration) (*http.Response, error) { |
| 290 | return pool.DoWithParams(req, DoParams{Timeout: timeout}) |
| 291 | } |
| 292 | |
| 293 | func (pool *LoadBalancedPool) GetWithKey(key []byte, limit int) (*http.Client, error) { |
| 294 | _, instance, _, err := pool.getInstance(key, limit) |