locker_mocks

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 4 Imported by: 0

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

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

func (*MockLockManager) Release

func (m *MockLockManager) Release(ctx context.Context, key, token string) error

Release mocks base method.

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.

Jump to

Keyboard shortcuts

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