Documentation ¶
Overview ¶
Package mock_redis is a generated GoMock package.
Package mock_redis is a generated GoMock package.
Index ¶
- type MockLock
- func (m *MockLock) EXPECT() *MockLockMockRecorder
- func (m *MockLock) Key() string
- func (m *MockLock) Refresh(arg0 context.Context, arg1 time.Duration, arg2 *redislock.Options) error
- func (m *MockLock) Release(arg0 context.Context) error
- func (m *MockLock) TTL(arg0 context.Context) (time.Duration, error)
- func (m *MockLock) Token() string
- type MockLockClient
- type MockLockClientMockRecorder
- type MockLockMockRecorder
- func (mr *MockLockMockRecorder) Key() *gomock.Call
- func (mr *MockLockMockRecorder) Refresh(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockLockMockRecorder) Release(arg0 interface{}) *gomock.Call
- func (mr *MockLockMockRecorder) TTL(arg0 interface{}) *gomock.Call
- func (mr *MockLockMockRecorder) Token() *gomock.Call
- type MockStore
- type MockStoreMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLock ¶
type MockLock struct {
// contains filtered or unexported fields
}
MockLock is a mock of Lock interface
func NewMockLock ¶
func NewMockLock(ctrl *gomock.Controller) *MockLock
NewMockLock creates a new mock instance
func (*MockLock) EXPECT ¶
func (m *MockLock) EXPECT() *MockLockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockLockClient ¶
type MockLockClient struct {
// contains filtered or unexported fields
}
MockLockClient is a mock of LockClient interface
func NewMockLockClient ¶
func NewMockLockClient(ctrl *gomock.Controller) *MockLockClient
NewMockLockClient creates a new mock instance
func (*MockLockClient) EXPECT ¶
func (m *MockLockClient) EXPECT() *MockLockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockLockClientMockRecorder ¶
type MockLockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockLockClientMockRecorder is the mock recorder for MockLockClient
func (*MockLockClientMockRecorder) Obtain ¶
func (mr *MockLockClientMockRecorder) Obtain(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Obtain indicates an expected call of Obtain
type MockLockMockRecorder ¶
type MockLockMockRecorder struct {
// contains filtered or unexported fields
}
MockLockMockRecorder is the mock recorder for MockLock
func (*MockLockMockRecorder) Key ¶
func (mr *MockLockMockRecorder) Key() *gomock.Call
Key indicates an expected call of Key
func (*MockLockMockRecorder) Refresh ¶
func (mr *MockLockMockRecorder) Refresh(arg0, arg1, arg2 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh
func (*MockLockMockRecorder) Release ¶
func (mr *MockLockMockRecorder) Release(arg0 interface{}) *gomock.Call
Release indicates an expected call of Release
func (*MockLockMockRecorder) TTL ¶
func (mr *MockLockMockRecorder) TTL(arg0 interface{}) *gomock.Call
TTL indicates an expected call of TTL
func (*MockLockMockRecorder) Token ¶
func (mr *MockLockMockRecorder) Token() *gomock.Call
Token indicates an expected call of Token
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore
func (*MockStoreMockRecorder) Restore ¶
func (mr *MockStoreMockRecorder) Restore(arg0, arg1 interface{}) *gomock.Call
Restore indicates an expected call of Restore
func (*MockStoreMockRecorder) Save ¶
func (mr *MockStoreMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
Save indicates an expected call of Save