Documentation
¶
Overview ¶
Package locker_mocks is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLockManager ¶
type MockLockManager struct {
// contains filtered or unexported fields
}
MockLockManager is a mock of LockManager interface.
func NewMockLockManager ¶
func NewMockLockManager(ctrl *gomock.Controller) *MockLockManager
NewMockLockManager creates a new mock instance.
func (*MockLockManager) Acquire ¶
func (m *MockLockManager) Acquire(ctx context.Context, key string, ttl time.Duration, token ...string) (string, error)
Acquire mocks base method.
func (*MockLockManager) EXPECT ¶
func (m *MockLockManager) EXPECT() *MockLockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLockManagerMockRecorder ¶
type MockLockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockLockManagerMockRecorder is the mock recorder for MockLockManager.
func (*MockLockManagerMockRecorder) Acquire ¶
func (mr *MockLockManagerMockRecorder) Acquire(ctx, key, ttl interface{}, token ...interface{}) *gomock.Call
Acquire indicates an expected call of Acquire.
func (*MockLockManagerMockRecorder) Release ¶
func (mr *MockLockManagerMockRecorder) Release(ctx, key, token interface{}) *gomock.Call
Release indicates an expected call of Release.
Click to show internal directories.
Click to hide internal directories.