Documentation ¶
Overview ¶
Package mock_redis is a generated GoMock package.
Index ¶
- type MockDriver
- func (m *MockDriver) Del(ctx context.Context, key string) error
- func (m *MockDriver) EXPECT() *MockDriverMockRecorder
- func (m *MockDriver) Get(ctx context.Context, key string) (string, error)
- func (m *MockDriver) GetDel(ctx context.Context, key string) (string, error)
- func (m *MockDriver) SAdd(ctx context.Context, key string, members ...string) error
- func (m *MockDriver) SMembers(ctx context.Context, key string) ([]string, error)
- func (m *MockDriver) SRem(ctx context.Context, key string, members ...string) error
- func (m *MockDriver) SetEx(ctx context.Context, key string, val interface{}, expiration time.Duration) error
- type MockDriverMockRecorder
- func (mr *MockDriverMockRecorder) Del(ctx, key interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) GetDel(ctx, key interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) SMembers(ctx, key interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) SRem(ctx, key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) SetEx(ctx, key, val, expiration interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDriver ¶
type MockDriver struct {
// contains filtered or unexported fields
}
MockDriver is a mock of Driver interface.
func NewMockDriver ¶
func NewMockDriver(ctrl *gomock.Controller) *MockDriver
NewMockDriver creates a new mock instance.
func (*MockDriver) Del ¶
func (m *MockDriver) Del(ctx context.Context, key string) error
Del mocks base method.
func (*MockDriver) EXPECT ¶
func (m *MockDriver) EXPECT() *MockDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDriverMockRecorder ¶
type MockDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockDriverMockRecorder is the mock recorder for MockDriver.
func (*MockDriverMockRecorder) Del ¶
func (mr *MockDriverMockRecorder) Del(ctx, key interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockDriverMockRecorder) Get ¶
func (mr *MockDriverMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDriverMockRecorder) GetDel ¶
func (mr *MockDriverMockRecorder) GetDel(ctx, key interface{}) *gomock.Call
GetDel indicates an expected call of GetDel.
func (*MockDriverMockRecorder) SAdd ¶
func (mr *MockDriverMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call
SAdd indicates an expected call of SAdd.
func (*MockDriverMockRecorder) SMembers ¶
func (mr *MockDriverMockRecorder) SMembers(ctx, key interface{}) *gomock.Call
SMembers indicates an expected call of SMembers.
func (*MockDriverMockRecorder) SRem ¶
func (mr *MockDriverMockRecorder) SRem(ctx, key interface{}, members ...interface{}) *gomock.Call
SRem indicates an expected call of SRem.
func (*MockDriverMockRecorder) SetEx ¶
func (mr *MockDriverMockRecorder) SetEx(ctx, key, val, expiration interface{}) *gomock.Call
SetEx indicates an expected call of SetEx.
Click to show internal directories.
Click to hide internal directories.