Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockcacheAccessor ¶
type MockcacheAccessor struct {
// contains filtered or unexported fields
}
MockcacheAccessor is a mock of cacheAccessor interface.
func NewMockcacheAccessor ¶
func NewMockcacheAccessor(ctrl *gomock.Controller) *MockcacheAccessor
NewMockcacheAccessor creates a new mock instance.
func (*MockcacheAccessor) AllowRateLimit ¶
func (m *MockcacheAccessor) AllowRateLimit(ctx context.Context, key string, interval time.Duration, burst int, ttl time.Duration) (bool, error)
AllowRateLimit mocks base method.
func (*MockcacheAccessor) EXPECT ¶
func (m *MockcacheAccessor) EXPECT() *MockcacheAccessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockcacheAccessorMockRecorder ¶
type MockcacheAccessorMockRecorder struct {
// contains filtered or unexported fields
}
MockcacheAccessorMockRecorder is the mock recorder for MockcacheAccessor.
func (*MockcacheAccessorMockRecorder) AllowRateLimit ¶
func (mr *MockcacheAccessorMockRecorder) AllowRateLimit(ctx, key, interval, burst, ttl any) *gomock.Call
AllowRateLimit indicates an expected call of AllowRateLimit.
Click to show internal directories.
Click to hide internal directories.