Documentation
¶
Overview ¶
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(ctx context.Context, ttl time.Duration, opt *redislock.Options) error
- func (m *MockLock) Release(ctx context.Context) error
- func (m *MockLock) TTL(ctx context.Context) (time.Duration, error)
- func (m *MockLock) Token() string
- type MockLockClient
- type MockLockClientMockRecorder
- type MockLockMockRecorder
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.
func (*MockLock) Refresh ¶
Refresh mocks base method.
func (*MockLock) Release ¶
Release mocks base method.
func (*MockLock) TTL ¶
TTL mocks base method.
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(ctx, key, ttl, opt any) *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(ctx, ttl, opt any) *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockLockMockRecorder) Release ¶
func (mr *MockLockMockRecorder) Release(ctx any) *gomock.Call
Release indicates an expected call of Release.
func (*MockLockMockRecorder) TTL ¶
func (mr *MockLockMockRecorder) TTL(ctx any) *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.
Source Files
¶
- redislock.go