Documentation ¶
Index ¶
- type RateLimitingInterface
- func (_m *RateLimitingInterface) Add(item interface{})
- func (_m *RateLimitingInterface) AddAfter(item interface{}, duration time.Duration)
- func (_m *RateLimitingInterface) AddRateLimited(item interface{})
- func (_m *RateLimitingInterface) Done(item interface{})
- func (_m *RateLimitingInterface) EXPECT() *RateLimitingInterface_Expecter
- func (_m *RateLimitingInterface) Forget(item interface{})
- func (_m *RateLimitingInterface) Get() (interface{}, bool)
- func (_m *RateLimitingInterface) Len() int
- func (_m *RateLimitingInterface) NumRequeues(item interface{}) int
- func (_m *RateLimitingInterface) ShutDown()
- func (_m *RateLimitingInterface) ShutDownWithDrain()
- func (_m *RateLimitingInterface) ShuttingDown() bool
- type RateLimitingInterface_AddAfter_Call
- func (_c *RateLimitingInterface_AddAfter_Call) Return() *RateLimitingInterface_AddAfter_Call
- func (_c *RateLimitingInterface_AddAfter_Call) Run(run func(item interface{}, duration time.Duration)) *RateLimitingInterface_AddAfter_Call
- func (_c *RateLimitingInterface_AddAfter_Call) RunAndReturn(run func(interface{}, time.Duration)) *RateLimitingInterface_AddAfter_Call
- type RateLimitingInterface_AddRateLimited_Call
- func (_c *RateLimitingInterface_AddRateLimited_Call) Return() *RateLimitingInterface_AddRateLimited_Call
- func (_c *RateLimitingInterface_AddRateLimited_Call) Run(run func(item interface{})) *RateLimitingInterface_AddRateLimited_Call
- func (_c *RateLimitingInterface_AddRateLimited_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_AddRateLimited_Call
- type RateLimitingInterface_Add_Call
- type RateLimitingInterface_Done_Call
- func (_c *RateLimitingInterface_Done_Call) Return() *RateLimitingInterface_Done_Call
- func (_c *RateLimitingInterface_Done_Call) Run(run func(item interface{})) *RateLimitingInterface_Done_Call
- func (_c *RateLimitingInterface_Done_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Done_Call
- type RateLimitingInterface_Expecter
- func (_e *RateLimitingInterface_Expecter) Add(item interface{}) *RateLimitingInterface_Add_Call
- func (_e *RateLimitingInterface_Expecter) AddAfter(item interface{}, duration interface{}) *RateLimitingInterface_AddAfter_Call
- func (_e *RateLimitingInterface_Expecter) AddRateLimited(item interface{}) *RateLimitingInterface_AddRateLimited_Call
- func (_e *RateLimitingInterface_Expecter) Done(item interface{}) *RateLimitingInterface_Done_Call
- func (_e *RateLimitingInterface_Expecter) Forget(item interface{}) *RateLimitingInterface_Forget_Call
- func (_e *RateLimitingInterface_Expecter) Get() *RateLimitingInterface_Get_Call
- func (_e *RateLimitingInterface_Expecter) Len() *RateLimitingInterface_Len_Call
- func (_e *RateLimitingInterface_Expecter) NumRequeues(item interface{}) *RateLimitingInterface_NumRequeues_Call
- func (_e *RateLimitingInterface_Expecter) ShutDown() *RateLimitingInterface_ShutDown_Call
- func (_e *RateLimitingInterface_Expecter) ShutDownWithDrain() *RateLimitingInterface_ShutDownWithDrain_Call
- func (_e *RateLimitingInterface_Expecter) ShuttingDown() *RateLimitingInterface_ShuttingDown_Call
- type RateLimitingInterface_Forget_Call
- func (_c *RateLimitingInterface_Forget_Call) Return() *RateLimitingInterface_Forget_Call
- func (_c *RateLimitingInterface_Forget_Call) Run(run func(item interface{})) *RateLimitingInterface_Forget_Call
- func (_c *RateLimitingInterface_Forget_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Forget_Call
- type RateLimitingInterface_Get_Call
- func (_c *RateLimitingInterface_Get_Call) Return(item interface{}, shutdown bool) *RateLimitingInterface_Get_Call
- func (_c *RateLimitingInterface_Get_Call) Run(run func()) *RateLimitingInterface_Get_Call
- func (_c *RateLimitingInterface_Get_Call) RunAndReturn(run func() (interface{}, bool)) *RateLimitingInterface_Get_Call
- type RateLimitingInterface_Len_Call
- type RateLimitingInterface_NumRequeues_Call
- func (_c *RateLimitingInterface_NumRequeues_Call) Return(_a0 int) *RateLimitingInterface_NumRequeues_Call
- func (_c *RateLimitingInterface_NumRequeues_Call) Run(run func(item interface{})) *RateLimitingInterface_NumRequeues_Call
- func (_c *RateLimitingInterface_NumRequeues_Call) RunAndReturn(run func(interface{}) int) *RateLimitingInterface_NumRequeues_Call
- type RateLimitingInterface_ShutDownWithDrain_Call
- func (_c *RateLimitingInterface_ShutDownWithDrain_Call) Return() *RateLimitingInterface_ShutDownWithDrain_Call
- func (_c *RateLimitingInterface_ShutDownWithDrain_Call) Run(run func()) *RateLimitingInterface_ShutDownWithDrain_Call
- func (_c *RateLimitingInterface_ShutDownWithDrain_Call) RunAndReturn(run func()) *RateLimitingInterface_ShutDownWithDrain_Call
- type RateLimitingInterface_ShutDown_Call
- func (_c *RateLimitingInterface_ShutDown_Call) Return() *RateLimitingInterface_ShutDown_Call
- func (_c *RateLimitingInterface_ShutDown_Call) Run(run func()) *RateLimitingInterface_ShutDown_Call
- func (_c *RateLimitingInterface_ShutDown_Call) RunAndReturn(run func()) *RateLimitingInterface_ShutDown_Call
- type RateLimitingInterface_ShuttingDown_Call
- func (_c *RateLimitingInterface_ShuttingDown_Call) Return(_a0 bool) *RateLimitingInterface_ShuttingDown_Call
- func (_c *RateLimitingInterface_ShuttingDown_Call) Run(run func()) *RateLimitingInterface_ShuttingDown_Call
- func (_c *RateLimitingInterface_ShuttingDown_Call) RunAndReturn(run func() bool) *RateLimitingInterface_ShuttingDown_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitingInterface ¶
RateLimitingInterface is an autogenerated mock type for the RateLimitingInterface type
func NewRateLimitingInterface ¶
func NewRateLimitingInterface(t interface { mock.TestingT Cleanup(func()) }) *RateLimitingInterface
NewRateLimitingInterface creates a new instance of RateLimitingInterface. 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 (*RateLimitingInterface) Add ¶
func (_m *RateLimitingInterface) Add(item interface{})
Add provides a mock function with given fields: item
func (*RateLimitingInterface) AddAfter ¶
func (_m *RateLimitingInterface) AddAfter(item interface{}, duration time.Duration)
AddAfter provides a mock function with given fields: item, duration
func (*RateLimitingInterface) AddRateLimited ¶
func (_m *RateLimitingInterface) AddRateLimited(item interface{})
AddRateLimited provides a mock function with given fields: item
func (*RateLimitingInterface) Done ¶
func (_m *RateLimitingInterface) Done(item interface{})
Done provides a mock function with given fields: item
func (*RateLimitingInterface) EXPECT ¶
func (_m *RateLimitingInterface) EXPECT() *RateLimitingInterface_Expecter
func (*RateLimitingInterface) Forget ¶
func (_m *RateLimitingInterface) Forget(item interface{})
Forget provides a mock function with given fields: item
func (*RateLimitingInterface) Get ¶
func (_m *RateLimitingInterface) Get() (interface{}, bool)
Get provides a mock function with given fields:
func (*RateLimitingInterface) Len ¶
func (_m *RateLimitingInterface) Len() int
Len provides a mock function with given fields:
func (*RateLimitingInterface) NumRequeues ¶
func (_m *RateLimitingInterface) NumRequeues(item interface{}) int
NumRequeues provides a mock function with given fields: item
func (*RateLimitingInterface) ShutDown ¶
func (_m *RateLimitingInterface) ShutDown()
ShutDown provides a mock function with given fields:
func (*RateLimitingInterface) ShutDownWithDrain ¶
func (_m *RateLimitingInterface) ShutDownWithDrain()
ShutDownWithDrain provides a mock function with given fields:
func (*RateLimitingInterface) ShuttingDown ¶
func (_m *RateLimitingInterface) ShuttingDown() bool
ShuttingDown provides a mock function with given fields:
type RateLimitingInterface_AddAfter_Call ¶
RateLimitingInterface_AddAfter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddAfter'
func (*RateLimitingInterface_AddAfter_Call) Return ¶
func (_c *RateLimitingInterface_AddAfter_Call) Return() *RateLimitingInterface_AddAfter_Call
func (*RateLimitingInterface_AddAfter_Call) Run ¶
func (_c *RateLimitingInterface_AddAfter_Call) Run(run func(item interface{}, duration time.Duration)) *RateLimitingInterface_AddAfter_Call
func (*RateLimitingInterface_AddAfter_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_AddAfter_Call) RunAndReturn(run func(interface{}, time.Duration)) *RateLimitingInterface_AddAfter_Call
type RateLimitingInterface_AddRateLimited_Call ¶
RateLimitingInterface_AddRateLimited_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRateLimited'
func (*RateLimitingInterface_AddRateLimited_Call) Return ¶
func (_c *RateLimitingInterface_AddRateLimited_Call) Return() *RateLimitingInterface_AddRateLimited_Call
func (*RateLimitingInterface_AddRateLimited_Call) Run ¶
func (_c *RateLimitingInterface_AddRateLimited_Call) Run(run func(item interface{})) *RateLimitingInterface_AddRateLimited_Call
func (*RateLimitingInterface_AddRateLimited_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_AddRateLimited_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_AddRateLimited_Call
type RateLimitingInterface_Add_Call ¶
RateLimitingInterface_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*RateLimitingInterface_Add_Call) Return ¶
func (_c *RateLimitingInterface_Add_Call) Return() *RateLimitingInterface_Add_Call
func (*RateLimitingInterface_Add_Call) Run ¶
func (_c *RateLimitingInterface_Add_Call) Run(run func(item interface{})) *RateLimitingInterface_Add_Call
func (*RateLimitingInterface_Add_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_Add_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Add_Call
type RateLimitingInterface_Done_Call ¶
RateLimitingInterface_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*RateLimitingInterface_Done_Call) Return ¶
func (_c *RateLimitingInterface_Done_Call) Return() *RateLimitingInterface_Done_Call
func (*RateLimitingInterface_Done_Call) Run ¶
func (_c *RateLimitingInterface_Done_Call) Run(run func(item interface{})) *RateLimitingInterface_Done_Call
func (*RateLimitingInterface_Done_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_Done_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Done_Call
type RateLimitingInterface_Expecter ¶
type RateLimitingInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*RateLimitingInterface_Expecter) Add ¶
func (_e *RateLimitingInterface_Expecter) Add(item interface{}) *RateLimitingInterface_Add_Call
Add is a helper method to define mock.On call
- item interface{}
func (*RateLimitingInterface_Expecter) AddAfter ¶
func (_e *RateLimitingInterface_Expecter) AddAfter(item interface{}, duration interface{}) *RateLimitingInterface_AddAfter_Call
AddAfter is a helper method to define mock.On call
- item interface{}
- duration time.Duration
func (*RateLimitingInterface_Expecter) AddRateLimited ¶
func (_e *RateLimitingInterface_Expecter) AddRateLimited(item interface{}) *RateLimitingInterface_AddRateLimited_Call
AddRateLimited is a helper method to define mock.On call
- item interface{}
func (*RateLimitingInterface_Expecter) Done ¶
func (_e *RateLimitingInterface_Expecter) Done(item interface{}) *RateLimitingInterface_Done_Call
Done is a helper method to define mock.On call
- item interface{}
func (*RateLimitingInterface_Expecter) Forget ¶
func (_e *RateLimitingInterface_Expecter) Forget(item interface{}) *RateLimitingInterface_Forget_Call
Forget is a helper method to define mock.On call
- item interface{}
func (*RateLimitingInterface_Expecter) Get ¶
func (_e *RateLimitingInterface_Expecter) Get() *RateLimitingInterface_Get_Call
Get is a helper method to define mock.On call
func (*RateLimitingInterface_Expecter) Len ¶
func (_e *RateLimitingInterface_Expecter) Len() *RateLimitingInterface_Len_Call
Len is a helper method to define mock.On call
func (*RateLimitingInterface_Expecter) NumRequeues ¶
func (_e *RateLimitingInterface_Expecter) NumRequeues(item interface{}) *RateLimitingInterface_NumRequeues_Call
NumRequeues is a helper method to define mock.On call
- item interface{}
func (*RateLimitingInterface_Expecter) ShutDown ¶
func (_e *RateLimitingInterface_Expecter) ShutDown() *RateLimitingInterface_ShutDown_Call
ShutDown is a helper method to define mock.On call
func (*RateLimitingInterface_Expecter) ShutDownWithDrain ¶
func (_e *RateLimitingInterface_Expecter) ShutDownWithDrain() *RateLimitingInterface_ShutDownWithDrain_Call
ShutDownWithDrain is a helper method to define mock.On call
func (*RateLimitingInterface_Expecter) ShuttingDown ¶
func (_e *RateLimitingInterface_Expecter) ShuttingDown() *RateLimitingInterface_ShuttingDown_Call
ShuttingDown is a helper method to define mock.On call
type RateLimitingInterface_Forget_Call ¶
RateLimitingInterface_Forget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forget'
func (*RateLimitingInterface_Forget_Call) Return ¶
func (_c *RateLimitingInterface_Forget_Call) Return() *RateLimitingInterface_Forget_Call
func (*RateLimitingInterface_Forget_Call) Run ¶
func (_c *RateLimitingInterface_Forget_Call) Run(run func(item interface{})) *RateLimitingInterface_Forget_Call
func (*RateLimitingInterface_Forget_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_Forget_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Forget_Call
type RateLimitingInterface_Get_Call ¶
RateLimitingInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RateLimitingInterface_Get_Call) Return ¶
func (_c *RateLimitingInterface_Get_Call) Return(item interface{}, shutdown bool) *RateLimitingInterface_Get_Call
func (*RateLimitingInterface_Get_Call) Run ¶
func (_c *RateLimitingInterface_Get_Call) Run(run func()) *RateLimitingInterface_Get_Call
func (*RateLimitingInterface_Get_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_Get_Call) RunAndReturn(run func() (interface{}, bool)) *RateLimitingInterface_Get_Call
type RateLimitingInterface_Len_Call ¶
RateLimitingInterface_Len_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Len'
func (*RateLimitingInterface_Len_Call) Return ¶
func (_c *RateLimitingInterface_Len_Call) Return(_a0 int) *RateLimitingInterface_Len_Call
func (*RateLimitingInterface_Len_Call) Run ¶
func (_c *RateLimitingInterface_Len_Call) Run(run func()) *RateLimitingInterface_Len_Call
func (*RateLimitingInterface_Len_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_Len_Call) RunAndReturn(run func() int) *RateLimitingInterface_Len_Call
type RateLimitingInterface_NumRequeues_Call ¶
RateLimitingInterface_NumRequeues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumRequeues'
func (*RateLimitingInterface_NumRequeues_Call) Return ¶
func (_c *RateLimitingInterface_NumRequeues_Call) Return(_a0 int) *RateLimitingInterface_NumRequeues_Call
func (*RateLimitingInterface_NumRequeues_Call) Run ¶
func (_c *RateLimitingInterface_NumRequeues_Call) Run(run func(item interface{})) *RateLimitingInterface_NumRequeues_Call
func (*RateLimitingInterface_NumRequeues_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_NumRequeues_Call) RunAndReturn(run func(interface{}) int) *RateLimitingInterface_NumRequeues_Call
type RateLimitingInterface_ShutDownWithDrain_Call ¶
RateLimitingInterface_ShutDownWithDrain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutDownWithDrain'
func (*RateLimitingInterface_ShutDownWithDrain_Call) Return ¶
func (_c *RateLimitingInterface_ShutDownWithDrain_Call) Return() *RateLimitingInterface_ShutDownWithDrain_Call
func (*RateLimitingInterface_ShutDownWithDrain_Call) Run ¶
func (_c *RateLimitingInterface_ShutDownWithDrain_Call) Run(run func()) *RateLimitingInterface_ShutDownWithDrain_Call
func (*RateLimitingInterface_ShutDownWithDrain_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_ShutDownWithDrain_Call) RunAndReturn(run func()) *RateLimitingInterface_ShutDownWithDrain_Call
type RateLimitingInterface_ShutDown_Call ¶
RateLimitingInterface_ShutDown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutDown'
func (*RateLimitingInterface_ShutDown_Call) Return ¶
func (_c *RateLimitingInterface_ShutDown_Call) Return() *RateLimitingInterface_ShutDown_Call
func (*RateLimitingInterface_ShutDown_Call) Run ¶
func (_c *RateLimitingInterface_ShutDown_Call) Run(run func()) *RateLimitingInterface_ShutDown_Call
func (*RateLimitingInterface_ShutDown_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_ShutDown_Call) RunAndReturn(run func()) *RateLimitingInterface_ShutDown_Call
type RateLimitingInterface_ShuttingDown_Call ¶
RateLimitingInterface_ShuttingDown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShuttingDown'
func (*RateLimitingInterface_ShuttingDown_Call) Return ¶
func (_c *RateLimitingInterface_ShuttingDown_Call) Return(_a0 bool) *RateLimitingInterface_ShuttingDown_Call
func (*RateLimitingInterface_ShuttingDown_Call) Run ¶
func (_c *RateLimitingInterface_ShuttingDown_Call) Run(run func()) *RateLimitingInterface_ShuttingDown_Call
func (*RateLimitingInterface_ShuttingDown_Call) RunAndReturn ¶
func (_c *RateLimitingInterface_ShuttingDown_Call) RunAndReturn(run func() bool) *RateLimitingInterface_ShuttingDown_Call