Documentation
¶
Overview ¶
Package mockservice is a generated GoMock package.
Index ¶
- type MockRedis
- func (m *MockRedis) Close() error
- func (m *MockRedis) Del(arg0 string) error
- func (m *MockRedis) EXPECT() *MockRedisMockRecorder
- func (m *MockRedis) Exists(arg0 string) bool
- func (m *MockRedis) Get(arg0 string) (string, error)
- func (m *MockRedis) Ping(arg0 context.Context) error
- func (m *MockRedis) Set(arg0, arg1 string, arg2 time.Duration) error
- func (m *MockRedis) SetNX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) (bool, error)
- type MockRedisMockRecorder
- func (mr *MockRedisMockRecorder) Close() *gomock.Call
- func (mr *MockRedisMockRecorder) Del(arg0 interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedis ¶
type MockRedis struct {
// contains filtered or unexported fields
}
MockRedis is a mock of Redis interface.
func NewMockRedis ¶
func NewMockRedis(ctrl *gomock.Controller) *MockRedis
NewMockRedis creates a new mock instance.
func (*MockRedis) EXPECT ¶
func (m *MockRedis) EXPECT() *MockRedisMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRedisMockRecorder ¶
type MockRedisMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisMockRecorder is the mock recorder for MockRedis.
func (*MockRedisMockRecorder) Close ¶
func (mr *MockRedisMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRedisMockRecorder) Del ¶
func (mr *MockRedisMockRecorder) Del(arg0 interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockRedisMockRecorder) Exists ¶
func (mr *MockRedisMockRecorder) Exists(arg0 interface{}) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockRedisMockRecorder) Get ¶
func (mr *MockRedisMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisMockRecorder) Ping ¶
func (mr *MockRedisMockRecorder) Ping(arg0 interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockRedisMockRecorder) Set ¶
func (mr *MockRedisMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockRedisMockRecorder) SetNX ¶
func (mr *MockRedisMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetNX indicates an expected call of SetNX.
Click to show internal directories.
Click to hide internal directories.