rateLimit

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRateLimit

type IRateLimit struct {
	mock.Mock
}

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

type IRateLimitFactory struct {
	mock.Mock
}

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 (*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

type IRateLimitFactory_NewRateLimit_Call struct {
	*mock.Call
}

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 (*IRateLimitFactory_NewRateLimit_Call) Run added in v1.0.2

func (*IRateLimitFactory_NewRateLimit_Call) RunAndReturn added in v1.0.2

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

Handler is a helper method to define mock.On call

type IRateLimit_Handler_Call added in v1.0.2

type IRateLimit_Handler_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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