Documentation
¶
Overview ¶
Package mock_repository is a generated GoMock package.
Index ¶
- type MockRedisPooler
- func (m *MockRedisPooler) ActiveCount() int
- func (m *MockRedisPooler) Close() error
- func (m *MockRedisPooler) EXPECT() *MockRedisPoolerMockRecorder
- func (m *MockRedisPooler) Get() redis.Conn
- func (m *MockRedisPooler) GetContext(ctx context.Context) (redis.Conn, error)
- func (m *MockRedisPooler) IdleCount() int
- func (m *MockRedisPooler) Stats() redis.PoolStats
- type MockRedisPoolerMockRecorder
- func (mr *MockRedisPoolerMockRecorder) ActiveCount() *gomock.Call
- func (mr *MockRedisPoolerMockRecorder) Close() *gomock.Call
- func (mr *MockRedisPoolerMockRecorder) Get() *gomock.Call
- func (mr *MockRedisPoolerMockRecorder) GetContext(ctx interface{}) *gomock.Call
- func (mr *MockRedisPoolerMockRecorder) IdleCount() *gomock.Call
- func (mr *MockRedisPoolerMockRecorder) Stats() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedisPooler ¶
type MockRedisPooler struct {
// contains filtered or unexported fields
}
MockRedisPooler is a mock of RedisPooler interface
func NewMockRedisPooler ¶
func NewMockRedisPooler(ctrl *gomock.Controller) *MockRedisPooler
NewMockRedisPooler creates a new mock instance
func (*MockRedisPooler) ActiveCount ¶
func (m *MockRedisPooler) ActiveCount() int
ActiveCount mocks base method
func (*MockRedisPooler) EXPECT ¶
func (m *MockRedisPooler) EXPECT() *MockRedisPoolerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRedisPooler) GetContext ¶
GetContext mocks base method
func (*MockRedisPooler) IdleCount ¶
func (m *MockRedisPooler) IdleCount() int
IdleCount mocks base method
func (*MockRedisPooler) Stats ¶
func (m *MockRedisPooler) Stats() redis.PoolStats
Stats mocks base method
type MockRedisPoolerMockRecorder ¶
type MockRedisPoolerMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisPoolerMockRecorder is the mock recorder for MockRedisPooler
func (*MockRedisPoolerMockRecorder) ActiveCount ¶
func (mr *MockRedisPoolerMockRecorder) ActiveCount() *gomock.Call
ActiveCount indicates an expected call of ActiveCount
func (*MockRedisPoolerMockRecorder) Close ¶
func (mr *MockRedisPoolerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockRedisPoolerMockRecorder) Get ¶
func (mr *MockRedisPoolerMockRecorder) Get() *gomock.Call
Get indicates an expected call of Get
func (*MockRedisPoolerMockRecorder) GetContext ¶
func (mr *MockRedisPoolerMockRecorder) GetContext(ctx interface{}) *gomock.Call
GetContext indicates an expected call of GetContext
func (*MockRedisPoolerMockRecorder) IdleCount ¶
func (mr *MockRedisPoolerMockRecorder) IdleCount() *gomock.Call
IdleCount indicates an expected call of IdleCount
func (*MockRedisPoolerMockRecorder) Stats ¶
func (mr *MockRedisPoolerMockRecorder) Stats() *gomock.Call
Stats indicates an expected call of Stats