mocks

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func (*Authenticator) Authenticate

func (_m *Authenticator) Authenticate(_a0 auth.Credential) (auth.Credential, error)

Authenticate provides a mock function with given fields: _a0

type RateLimiter

type RateLimiter struct {
	mock.Mock
}

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

type Recorder struct {
	mock.Mock
}

Recorder is an autogenerated mock type for the Recorder type

func (*Recorder) AddInflightRequests

func (_m *Recorder) AddInflightRequests(ctx context.Context, id string, quantity int)

AddInflightRequests provides a mock function with given fields: ctx, id, quantity

func (*Recorder) ObserveHTTPRequestDuration

func (_m *Recorder) ObserveHTTPRequestDuration(ctx context.Context, id string, duration time.Duration, method string, code string)

ObserveHTTPRequestDuration provides a mock function with given fields: ctx, id, duration, method, code

func (*Recorder) ObserveHTTPResponseSize

func (_m *Recorder) ObserveHTTPResponseSize(ctx context.Context, id string, responseSize int64, method string, code string)

ObserveHTTPResponseSize provides a mock function with given fields: ctx, id, responseSize, method, code

type RoundTripper

type RoundTripper struct {
	mock.Mock
}

RoundTripper is an autogenerated mock type for the RoundTripper type

func (*RoundTripper) RoundTrip

func (_m *RoundTripper) RoundTrip(_a0 *http.Request) (*http.Response, error)

RoundTrip provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL