client

package
v0.0.0-...-bfcf95a Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHttpRequestDoer

type MockHttpRequestDoer struct {
	mock.Mock
}

MockHttpRequestDoer is an autogenerated mock type for the HttpRequestDoer type

func NewMockHttpRequestDoer

func NewMockHttpRequestDoer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHttpRequestDoer

NewMockHttpRequestDoer creates a new instance of MockHttpRequestDoer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockHttpRequestDoer) Do

Do provides a mock function with given fields: req

func (*MockHttpRequestDoer) EXPECT

type MockHttpRequestDoer_Do_Call

type MockHttpRequestDoer_Do_Call struct {
	*mock.Call
}

MockHttpRequestDoer_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'

func (*MockHttpRequestDoer_Do_Call) Return

func (*MockHttpRequestDoer_Do_Call) Run

func (*MockHttpRequestDoer_Do_Call) RunAndReturn

type MockHttpRequestDoer_Expecter

type MockHttpRequestDoer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockHttpRequestDoer_Expecter) Do

Do is a helper method to define mock.On call

  • req *http.Request

type MockLimiter

type MockLimiter struct {
	mock.Mock
}

MockLimiter is an autogenerated mock type for the Limiter type

func NewMockLimiter

func NewMockLimiter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLimiter

NewMockLimiter creates a new instance of MockLimiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockLimiter) EXPECT

func (_m *MockLimiter) EXPECT() *MockLimiter_Expecter

func (*MockLimiter) Wait

func (_m *MockLimiter) Wait(_a0 context.Context) error

Wait provides a mock function with given fields: _a0

type MockLimiter_Expecter

type MockLimiter_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockLimiter_Expecter) Wait

func (_e *MockLimiter_Expecter) Wait(_a0 interface{}) *MockLimiter_Wait_Call

Wait is a helper method to define mock.On call

  • _a0 context.Context

type MockLimiter_Wait_Call

type MockLimiter_Wait_Call struct {
	*mock.Call
}

MockLimiter_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'

func (*MockLimiter_Wait_Call) Return

func (*MockLimiter_Wait_Call) Run

func (*MockLimiter_Wait_Call) RunAndReturn

func (_c *MockLimiter_Wait_Call) RunAndReturn(run func(context.Context) error) *MockLimiter_Wait_Call

Jump to

Keyboard shortcuts

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