Documentation
¶
Overview ¶
Package mock_redis is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) Del(ctx context.Context, key string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) FlushAll(ctx context.Context) error
- func (m *MockInterface) FlushAllAsync(ctx context.Context) error
- func (m *MockInterface) FlushDB(ctx context.Context) error
- func (m *MockInterface) FlushDBAsync(ctx context.Context) error
- func (m *MockInterface) Get(ctx context.Context, key string) (string, error)
- func (m *MockInterface) GetDefaultTTL(ctx context.Context) time.Duration
- func (m *MockInterface) Lock(ctx context.Context, key string, expTime time.Duration) (*redislock.Lock, error)
- func (m *MockInterface) LockRelease(ctx context.Context, lock *redislock.Lock) error
- func (m *MockInterface) Ping(ctx context.Context) error
- func (m *MockInterface) SetEX(ctx context.Context, key, val string, expTime time.Duration) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Del(ctx, key any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) FlushAll(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) FlushAllAsync(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) FlushDB(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) FlushDBAsync(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(ctx, key any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetDefaultTTL(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Lock(ctx, key, expTime any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LockRelease(ctx, lock any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Ping(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetEX(ctx, key, val, expTime any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) Del ¶
func (m *MockInterface) Del(ctx context.Context, key string) error
Del mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) FlushAll ¶
func (m *MockInterface) FlushAll(ctx context.Context) error
FlushAll mocks base method.
func (*MockInterface) FlushAllAsync ¶
func (m *MockInterface) FlushAllAsync(ctx context.Context) error
FlushAllAsync mocks base method.
func (*MockInterface) FlushDB ¶
func (m *MockInterface) FlushDB(ctx context.Context) error
FlushDB mocks base method.
func (*MockInterface) FlushDBAsync ¶
func (m *MockInterface) FlushDBAsync(ctx context.Context) error
FlushDBAsync mocks base method.
func (*MockInterface) GetDefaultTTL ¶
func (m *MockInterface) GetDefaultTTL(ctx context.Context) time.Duration
GetDefaultTTL mocks base method.
func (*MockInterface) Lock ¶
func (m *MockInterface) Lock(ctx context.Context, key string, expTime time.Duration) (*redislock.Lock, error)
Lock mocks base method.
func (*MockInterface) LockRelease ¶
LockRelease mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Del ¶
func (mr *MockInterfaceMockRecorder) Del(ctx, key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockInterfaceMockRecorder) FlushAll ¶
func (mr *MockInterfaceMockRecorder) FlushAll(ctx any) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockInterfaceMockRecorder) FlushAllAsync ¶
func (mr *MockInterfaceMockRecorder) FlushAllAsync(ctx any) *gomock.Call
FlushAllAsync indicates an expected call of FlushAllAsync.
func (*MockInterfaceMockRecorder) FlushDB ¶
func (mr *MockInterfaceMockRecorder) FlushDB(ctx any) *gomock.Call
FlushDB indicates an expected call of FlushDB.
func (*MockInterfaceMockRecorder) FlushDBAsync ¶
func (mr *MockInterfaceMockRecorder) FlushDBAsync(ctx any) *gomock.Call
FlushDBAsync indicates an expected call of FlushDBAsync.
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(ctx, key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockInterfaceMockRecorder) GetDefaultTTL ¶
func (mr *MockInterfaceMockRecorder) GetDefaultTTL(ctx any) *gomock.Call
GetDefaultTTL indicates an expected call of GetDefaultTTL.
func (*MockInterfaceMockRecorder) Lock ¶
func (mr *MockInterfaceMockRecorder) Lock(ctx, key, expTime any) *gomock.Call
Lock indicates an expected call of Lock.
func (*MockInterfaceMockRecorder) LockRelease ¶
func (mr *MockInterfaceMockRecorder) LockRelease(ctx, lock any) *gomock.Call
LockRelease indicates an expected call of LockRelease.