Versions in this module Expand all Collapse all v1 v1.0.0 May 5, 2021 Changes in this version + func NewHTTPClient(client *http.Client, calls uint64, resources ...Resource) *http.Client + func NewRoundTripper(internal http.RoundTripper, calls uint64, resources ...Resource) http.RoundTripper + type ErrResourceUnexpectedResponseCode struct + StatusCode int + func (err ErrResourceUnexpectedResponseCode) Error() string + type Resource interface + After func() <-chan time.Time + Check func(*http.Response) error + Hook func(*http.Request) func(*http.Response) + Match func(*http.Request) bool + func NewResourceAverage(method string, url *regexp.Regexp, delay time.Duration, capacity int, ...) Resource + func NewResourcePercentiles(method string, url *regexp.Regexp, delay time.Duration, percentile float64, ...) Resource + func NewResourceStatic(method string, url *regexp.Regexp, delay time.Duration, allowedCodes ...int) Resource