mock_dlock

package
v0.0.0-...-d24e03e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_dlock is a generated GoMock package.

Index

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) IsLocked

func (m *MockLock) IsLocked(id string) (bool, error)

IsLocked mocks base method

func (*MockLock) Lock

func (m *MockLock) Lock(id string, expiry time.Duration) (bool, error)

Lock mocks base method

func (*MockLock) Unlock

func (m *MockLock) Unlock(id string) error

Unlock mocks base method

type MockLockMockRecorder

type MockLockMockRecorder struct {
	// contains filtered or unexported fields
}

MockLockMockRecorder is the mock recorder for MockLock

func (*MockLockMockRecorder) IsLocked

func (mr *MockLockMockRecorder) IsLocked(id interface{}) *gomock.Call

IsLocked indicates an expected call of IsLocked

func (*MockLockMockRecorder) Lock

func (mr *MockLockMockRecorder) Lock(id, expiry interface{}) *gomock.Call

Lock indicates an expected call of Lock

func (*MockLockMockRecorder) Unlock

func (mr *MockLockMockRecorder) Unlock(id interface{}) *gomock.Call

Unlock indicates an expected call of Unlock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL