lockmock

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package lockmock is a generated GoMock package.

Package lockmock 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) Release

func (m *MockLock) Release() error

Release mocks base method

type MockLockMockRecorder

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

MockLockMockRecorder is the mock recorder for MockLock

func (*MockLockMockRecorder) Release

func (mr *MockLockMockRecorder) Release() *gomock.Call

Release indicates an expected call of Release

type MockLockMutex

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

func (*MockLockMutex) Release

func (lock *MockLockMutex) Release() error

type MockLocker

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

MockLocker is a mock of Locker interface

func NewMockLocker

func NewMockLocker(ctrl *gomock.Controller) *MockLocker

NewMockLocker creates a new mock instance

func (*MockLocker) Acquire

func (m *MockLocker) Acquire(arg0 string, arg1 int) (lock.Lock, error)

Acquire mocks base method

func (*MockLocker) EXPECT

func (m *MockLocker) EXPECT() *MockLockerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockLocker) Wait

func (m *MockLocker) Wait(arg0 string) error

Wait mocks base method

func (*MockLocker) WaitAcquire

func (m *MockLocker) WaitAcquire(arg0 string, arg1 int) (lock.Lock, error)

WaitAcquire mocks base method

type MockLockerMockRecorder

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

MockLockerMockRecorder is the mock recorder for MockLocker

func (*MockLockerMockRecorder) Acquire

func (mr *MockLockerMockRecorder) Acquire(arg0, arg1 interface{}) *gomock.Call

Acquire indicates an expected call of Acquire

func (*MockLockerMockRecorder) Wait

func (mr *MockLockerMockRecorder) Wait(arg0 interface{}) *gomock.Call

Wait indicates an expected call of Wait

func (*MockLockerMockRecorder) WaitAcquire

func (mr *MockLockerMockRecorder) WaitAcquire(arg0, arg1 interface{}) *gomock.Call

WaitAcquire indicates an expected call of WaitAcquire

type MockLockerMutex

type MockLockerMutex struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *MockLockerMutex

func (*MockLockerMutex) Acquire

func (locker *MockLockerMutex) Acquire(path string, ttl uint64) (lock.Lock, error)

func (*MockLockerMutex) Wait

func (locker *MockLockerMutex) Wait(path string) error

func (*MockLockerMutex) WaitAcquire

func (locker *MockLockerMutex) WaitAcquire(path string, ttl uint64) (lock.Lock, error)

Jump to

Keyboard shortcuts

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