Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
Mock of Connection interface
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
func (*MockConnection) EXPECT ¶
func (_m *MockConnection) EXPECT() *_MockConnectionRecorder
func (*MockConnection) PipeAppend ¶
func (_m *MockConnection) PipeAppend(_param0 string, _param1 ...interface{})
func (*MockConnection) PipeResponse ¶
func (_m *MockConnection) PipeResponse() redis.Response
type MockJitterRandSource ¶
type MockJitterRandSource struct {
// contains filtered or unexported fields
}
Mock of JitterRandSource interface
func NewMockJitterRandSource ¶
func NewMockJitterRandSource(ctrl *gomock.Controller) *MockJitterRandSource
func (*MockJitterRandSource) EXPECT ¶
func (_m *MockJitterRandSource) EXPECT() *_MockJitterRandSourceRecorder
func (*MockJitterRandSource) Int63 ¶
func (_m *MockJitterRandSource) Int63() int64
func (*MockJitterRandSource) Seed ¶
func (_m *MockJitterRandSource) Seed(_param0 int64)
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
Mock of Pool interface
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
func (*MockPool) Get ¶
func (_m *MockPool) Get() redis.Connection
func (*MockPool) Put ¶
func (_m *MockPool) Put(_param0 redis.Connection)
type MockRateLimitCache ¶
type MockRateLimitCache struct {
// contains filtered or unexported fields
}
Mock of RateLimitCache interface
func NewMockRateLimitCache ¶
func NewMockRateLimitCache(ctrl *gomock.Controller) *MockRateLimitCache
func (*MockRateLimitCache) DoLimit ¶
func (_m *MockRateLimitCache) DoLimit(_param0 context.Context, _param1 *ratelimit.RateLimitRequest, _param2 []*config.RateLimit) []*ratelimit.RateLimitResponse_DescriptorStatus
func (*MockRateLimitCache) EXPECT ¶
func (_m *MockRateLimitCache) EXPECT() *_MockRateLimitCacheRecorder
type MockResponse ¶
type MockResponse struct {
// contains filtered or unexported fields
}
Mock of Response interface
func NewMockResponse ¶
func NewMockResponse(ctrl *gomock.Controller) *MockResponse
func (*MockResponse) EXPECT ¶
func (_m *MockResponse) EXPECT() *_MockResponseRecorder
func (*MockResponse) Int ¶
func (_m *MockResponse) Int() int64
type MockTimeSource ¶
type MockTimeSource struct {
// contains filtered or unexported fields
}
Mock of TimeSource interface
func NewMockTimeSource ¶
func NewMockTimeSource(ctrl *gomock.Controller) *MockTimeSource
func (*MockTimeSource) EXPECT ¶
func (_m *MockTimeSource) EXPECT() *_MockTimeSourceRecorder
func (*MockTimeSource) UnixNow ¶
func (_m *MockTimeSource) UnixNow() int64
Click to show internal directories.
Click to hide internal directories.