Documentation ¶
Index ¶
- type Authenticator
- type RateLimiter
- type Recorder
- func (_m *Recorder) AddInflightRequests(ctx context.Context, id string, quantity int)
- func (_m *Recorder) ObserveHTTPRequestDuration(ctx context.Context, id string, duration time.Duration, method string, ...)
- func (_m *Recorder) ObserveHTTPResponseSize(ctx context.Context, id string, responseSize int64, method string, code string)
- type RoundTripper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is an autogenerated mock type for the Authenticator type
func (*Authenticator) Authenticate ¶
func (_m *Authenticator) Authenticate(_a0 context.Context, _a1 auth.Credential) (auth.Credential, error)
Authenticate provides a mock function with given fields: _a0, _a1
type RateLimiter ¶
RateLimiter is an autogenerated mock type for the RateLimiter type
func (*RateLimiter) Allow ¶
func (_m *RateLimiter) Allow(req *http.Request) error
Allow provides a mock function with given fields: req
func (*RateLimiter) Dec ¶
func (_m *RateLimiter) Dec(req *http.Request)
Dec provides a mock function with given fields: req
func (*RateLimiter) Inc ¶
func (_m *RateLimiter) Inc(req *http.Request)
Inc provides a mock function with given fields: req
type Recorder ¶
Recorder is an autogenerated mock type for the Recorder type
func (*Recorder) AddInflightRequests ¶
AddInflightRequests provides a mock function with given fields: ctx, id, quantity
Click to show internal directories.
Click to hide internal directories.