mock

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (m *MockLocker) EXPECT() *MockLockerMockRecorder

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

func (*MockLocker) Lock

func (m *MockLocker) Lock(ctx context.Context, key string, random interface{}, duration time.Duration, try int) (bool, error)

Lock mocks base method.

func (*MockLocker) Unlock

func (m *MockLocker) Unlock(ctx context.Context, key string, random interface{}) error

Unlock mocks base method.

type MockLockerMockRecorder

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

MockLockerMockRecorder is the mock recorder for MockLocker.

func (*MockLockerMockRecorder) Lock

func (mr *MockLockerMockRecorder) Lock(ctx, key, random, duration, try interface{}) *gomock.Call

Lock indicates an expected call of Lock.

func (*MockLockerMockRecorder) Unlock

func (mr *MockLockerMockRecorder) Unlock(ctx, key, random 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