Documentation
¶
Index ¶
- type IRateLimit
- type IRateLimitFactory
- type IRateLimitFactory_Expecter
- type IRateLimitFactory_NewRateLimit_Call
- func (_c *IRateLimitFactory_NewRateLimit_Call) Return(iRateLimit rateLimit.IRateLimit) *IRateLimitFactory_NewRateLimit_Call
- func (_c *IRateLimitFactory_NewRateLimit_Call) Run(run func(config subrouter.RateLimitConfig)) *IRateLimitFactory_NewRateLimit_Call
- func (_c *IRateLimitFactory_NewRateLimit_Call) RunAndReturn(run func(config subrouter.RateLimitConfig) rateLimit.IRateLimit) *IRateLimitFactory_NewRateLimit_Call
- type IRateLimit_Expecter
- type IRateLimit_Handler_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRateLimit ¶
IRateLimit is an autogenerated mock type for the IRateLimit type
func NewIRateLimit ¶
func NewIRateLimit(t interface {
mock.TestingT
Cleanup(func())
}) *IRateLimit
NewIRateLimit creates a new instance of IRateLimit. 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 (*IRateLimit) EXPECT ¶ added in v1.0.2
func (_m *IRateLimit) EXPECT() *IRateLimit_Expecter
func (*IRateLimit) Handler ¶
func (_mock *IRateLimit) Handler() mux.MiddlewareFunc
Handler provides a mock function for the type IRateLimit
type IRateLimitFactory ¶
IRateLimitFactory is an autogenerated mock type for the IRateLimitFactory type
func NewIRateLimitFactory ¶
func NewIRateLimitFactory(t interface {
mock.TestingT
Cleanup(func())
}) *IRateLimitFactory
NewIRateLimitFactory creates a new instance of IRateLimitFactory. 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 (*IRateLimitFactory) EXPECT ¶ added in v1.0.2
func (_m *IRateLimitFactory) EXPECT() *IRateLimitFactory_Expecter
func (*IRateLimitFactory) NewRateLimit ¶
func (_mock *IRateLimitFactory) NewRateLimit(config subrouter.RateLimitConfig) rateLimit.IRateLimit
NewRateLimit provides a mock function for the type IRateLimitFactory
type IRateLimitFactory_Expecter ¶ added in v1.0.2
type IRateLimitFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*IRateLimitFactory_Expecter) NewRateLimit ¶ added in v1.0.2
func (_e *IRateLimitFactory_Expecter) NewRateLimit(config interface{}) *IRateLimitFactory_NewRateLimit_Call
NewRateLimit is a helper method to define mock.On call
- config subrouter.RateLimitConfig
type IRateLimitFactory_NewRateLimit_Call ¶ added in v1.0.2
IRateLimitFactory_NewRateLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewRateLimit'
func (*IRateLimitFactory_NewRateLimit_Call) Return ¶ added in v1.0.2
func (_c *IRateLimitFactory_NewRateLimit_Call) Return(iRateLimit rateLimit.IRateLimit) *IRateLimitFactory_NewRateLimit_Call
func (*IRateLimitFactory_NewRateLimit_Call) Run ¶ added in v1.0.2
func (_c *IRateLimitFactory_NewRateLimit_Call) Run(run func(config subrouter.RateLimitConfig)) *IRateLimitFactory_NewRateLimit_Call
func (*IRateLimitFactory_NewRateLimit_Call) RunAndReturn ¶ added in v1.0.2
func (_c *IRateLimitFactory_NewRateLimit_Call) RunAndReturn(run func(config subrouter.RateLimitConfig) rateLimit.IRateLimit) *IRateLimitFactory_NewRateLimit_Call
type IRateLimit_Expecter ¶ added in v1.0.2
type IRateLimit_Expecter struct {
// contains filtered or unexported fields
}
func (*IRateLimit_Expecter) Handler ¶ added in v1.0.2
func (_e *IRateLimit_Expecter) Handler() *IRateLimit_Handler_Call
Handler is a helper method to define mock.On call
type IRateLimit_Handler_Call ¶ added in v1.0.2
IRateLimit_Handler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handler'
func (*IRateLimit_Handler_Call) Return ¶ added in v1.0.2
func (_c *IRateLimit_Handler_Call) Return(middlewareFunc mux.MiddlewareFunc) *IRateLimit_Handler_Call
func (*IRateLimit_Handler_Call) Run ¶ added in v1.0.2
func (_c *IRateLimit_Handler_Call) Run(run func()) *IRateLimit_Handler_Call
func (*IRateLimit_Handler_Call) RunAndReturn ¶ added in v1.0.2
func (_c *IRateLimit_Handler_Call) RunAndReturn(run func() mux.MiddlewareFunc) *IRateLimit_Handler_Call