Documentation ¶
Overview ¶
Package slidinglog is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimiter ¶
func NewLimiter(client *redis.Client) *slidingLogLimiter
Types ¶
type MockSlidingLog ¶
type MockSlidingLog struct {
// contains filtered or unexported fields
}
MockSlidingLog is a mock of SlidingLog interface.
func NewMockSlidingLog ¶
func NewMockSlidingLog(ctrl *gomock.Controller) *MockSlidingLog
NewMockSlidingLog creates a new mock instance.
func (*MockSlidingLog) EXPECT ¶
func (m *MockSlidingLog) EXPECT() *MockSlidingLogMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSlidingLog) SetLimit ¶
func (m *MockSlidingLog) SetLimit(limit int64)
SetLimit mocks base method.
func (*MockSlidingLog) SetWindow ¶
func (m *MockSlidingLog) SetWindow(w time.Duration)
SetWindow mocks base method.
type MockSlidingLogMockRecorder ¶
type MockSlidingLogMockRecorder struct {
// contains filtered or unexported fields
}
MockSlidingLogMockRecorder is the mock recorder for MockSlidingLog.
func (*MockSlidingLogMockRecorder) Allow ¶
func (mr *MockSlidingLogMockRecorder) Allow(ctx, key interface{}) *gomock.Call
Allow indicates an expected call of Allow.
func (*MockSlidingLogMockRecorder) SetLimit ¶
func (mr *MockSlidingLogMockRecorder) SetLimit(limit interface{}) *gomock.Call
SetLimit indicates an expected call of SetLimit.
func (*MockSlidingLogMockRecorder) SetWindow ¶
func (mr *MockSlidingLogMockRecorder) SetWindow(w interface{}) *gomock.Call
SetWindow indicates an expected call of SetWindow.
Click to show internal directories.
Click to hide internal directories.