mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdvisoryLockFactory

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

func NewMockAdvisoryLockFactory

func NewMockAdvisoryLockFactory() *MockAdvisoryLockFactory

func (*MockAdvisoryLockFactory) NewAdvisoryLock

func (f *MockAdvisoryLockFactory) NewAdvisoryLock(ctx context.Context, id string, lockType db.LockType) (string, error)

func (*MockAdvisoryLockFactory) NewNonBlockingLock

func (f *MockAdvisoryLockFactory) NewNonBlockingLock(ctx context.Context, id string, lockType db.LockType) (string, bool, error)

func (*MockAdvisoryLockFactory) Unlock

func (f *MockAdvisoryLockFactory) Unlock(ctx context.Context, uuid string)

Jump to

Keyboard shortcuts

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