10 lines
295 B
Go
10 lines
295 B
Go
package httpclient
|
|||
|
|
|
||
|
|
import "net/http"
|
||
|
|
|
||
|
|
// Provider executes HTTP requests with automatic retry and circuit breaking.
|
||
|
|
// Inject Provider into services that make outbound HTTP calls; construct with New or NewWithDefaults.
|
||
|
|
type Provider interface {
|
||
|
|
Do(req *http.Request) (*http.Response, error)
|
||
|
|
}
|