mocks

package
v4.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncQueries

type SyncQueries struct {
	mock.Mock
}

SyncQueries is an autogenerated mock type for the SyncQueries type

func NewSyncQueries

func NewSyncQueries(t interface {
	mock.TestingT
	Cleanup(func())
}) *SyncQueries

NewSyncQueries creates a new instance of SyncQueries. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SyncQueries) AddToQueue

func (_mock *SyncQueries) AddToQueue(ctx context.Context, record *db.StateRecord) error

AddToQueue provides a mock function for the type SyncQueries

func (*SyncQueries) CheckQueueExists

func (_mock *SyncQueries) CheckQueueExists(ctx context.Context, semaphoreName string, holderKey string, controllerName string) ([]db.StateRecord, error)

CheckQueueExists provides a mock function for the type SyncQueries

func (*SyncQueries) CreateSemaphoreLimit

func (_mock *SyncQueries) CreateSemaphoreLimit(ctx context.Context, name string, sizeLimit int) error

CreateSemaphoreLimit provides a mock function for the type SyncQueries

func (*SyncQueries) DeleteLock

func (_mock *SyncQueries) DeleteLock(ctx context.Context, lockName string) error

DeleteLock provides a mock function for the type SyncQueries

func (*SyncQueries) DeleteSemaphoreLimit

func (_mock *SyncQueries) DeleteSemaphoreLimit(ctx context.Context, name string) error

DeleteSemaphoreLimit provides a mock function for the type SyncQueries

func (*SyncQueries) EXPECT

func (_m *SyncQueries) EXPECT() *SyncQueries_Expecter

func (*SyncQueries) ExpireInactiveLocks

func (_mock *SyncQueries) ExpireInactiveLocks(ctx context.Context, inactiveTimeout time.Duration) (int64, error)

ExpireInactiveLocks provides a mock function for the type SyncQueries

func (*SyncQueries) GetCurrentHolders

func (_mock *SyncQueries) GetCurrentHolders(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string) ([]db.StateRecord, error)

GetCurrentHolders provides a mock function for the type SyncQueries

func (*SyncQueries) GetCurrentPending

func (_mock *SyncQueries) GetCurrentPending(ctx context.Context, semaphoreName string) ([]db.StateRecord, error)

GetCurrentPending provides a mock function for the type SyncQueries

func (*SyncQueries) GetCurrentState

func (_mock *SyncQueries) GetCurrentState(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, held bool) ([]db.StateRecord, error)

GetCurrentState provides a mock function for the type SyncQueries

func (*SyncQueries) GetExistingLocks

func (_mock *SyncQueries) GetExistingLocks(ctx context.Context, lockName string, controllerName string) ([]db.LockRecord, error)

GetExistingLocks provides a mock function for the type SyncQueries

func (*SyncQueries) GetOrderedQueue

func (_mock *SyncQueries) GetOrderedQueue(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, inactiveTimeout time.Duration) ([]db.StateRecord, error)

GetOrderedQueue provides a mock function for the type SyncQueries

func (*SyncQueries) GetPendingInQueue

func (_mock *SyncQueries) GetPendingInQueue(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, holderKey string, controllerName string) ([]db.StateRecord, error)

GetPendingInQueue provides a mock function for the type SyncQueries

func (*SyncQueries) GetSemaphoreLimit

func (_mock *SyncQueries) GetSemaphoreLimit(ctx context.Context, dbKey string) (*db.LimitRecord, error)

GetSemaphoreLimit provides a mock function for the type SyncQueries

func (*SyncQueries) GetStateCountsByController added in v4.1.0

func (_mock *SyncQueries) GetStateCountsByController(ctx context.Context, controllerName string) ([]db.StateCountRecord, error)

GetStateCountsByController provides a mock function for the type SyncQueries

func (*SyncQueries) InsertControllerHealth

func (_mock *SyncQueries) InsertControllerHealth(ctx context.Context, record *db.ControllerHealthRecord) error

InsertControllerHealth provides a mock function for the type SyncQueries

func (*SyncQueries) InsertHeldState

func (_mock *SyncQueries) InsertHeldState(ctx context.Context, sessionProxy *sqldb.SessionProxy, record *db.StateRecord) error

InsertHeldState provides a mock function for the type SyncQueries

func (*SyncQueries) InsertLock

func (_mock *SyncQueries) InsertLock(ctx context.Context, record *db.LockRecord) error

InsertLock provides a mock function for the type SyncQueries

func (*SyncQueries) ReleaseHeld

func (_mock *SyncQueries) ReleaseHeld(ctx context.Context, semaphoreName string, key string, controllerName string) error

ReleaseHeld provides a mock function for the type SyncQueries

func (*SyncQueries) RemoveFromQueue

func (_mock *SyncQueries) RemoveFromQueue(ctx context.Context, semaphoreName string, holderKey string, controllerName string) error

RemoveFromQueue provides a mock function for the type SyncQueries

func (*SyncQueries) UpdateControllerTimestamp

func (_mock *SyncQueries) UpdateControllerTimestamp(ctx context.Context, controllerName string, timestamp time.Time) error

UpdateControllerTimestamp provides a mock function for the type SyncQueries

func (*SyncQueries) UpdateSemaphoreLimit

func (_mock *SyncQueries) UpdateSemaphoreLimit(ctx context.Context, name string, sizeLimit int) error

UpdateSemaphoreLimit provides a mock function for the type SyncQueries

func (*SyncQueries) UpdateStateToHeld

func (_mock *SyncQueries) UpdateStateToHeld(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, holderKey string, controllerName string) error

UpdateStateToHeld provides a mock function for the type SyncQueries

type SyncQueries_AddToQueue_Call

type SyncQueries_AddToQueue_Call struct {
	*mock.Call
}

SyncQueries_AddToQueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddToQueue'

func (*SyncQueries_AddToQueue_Call) Return

func (*SyncQueries_AddToQueue_Call) Run

func (*SyncQueries_AddToQueue_Call) RunAndReturn

type SyncQueries_CheckQueueExists_Call

type SyncQueries_CheckQueueExists_Call struct {
	*mock.Call
}

SyncQueries_CheckQueueExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckQueueExists'

func (*SyncQueries_CheckQueueExists_Call) Return

func (*SyncQueries_CheckQueueExists_Call) Run

func (_c *SyncQueries_CheckQueueExists_Call) Run(run func(ctx context.Context, semaphoreName string, holderKey string, controllerName string)) *SyncQueries_CheckQueueExists_Call

func (*SyncQueries_CheckQueueExists_Call) RunAndReturn

func (_c *SyncQueries_CheckQueueExists_Call) RunAndReturn(run func(ctx context.Context, semaphoreName string, holderKey string, controllerName string) ([]db.StateRecord, error)) *SyncQueries_CheckQueueExists_Call

type SyncQueries_CreateSemaphoreLimit_Call

type SyncQueries_CreateSemaphoreLimit_Call struct {
	*mock.Call
}

SyncQueries_CreateSemaphoreLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSemaphoreLimit'

func (*SyncQueries_CreateSemaphoreLimit_Call) Return

func (*SyncQueries_CreateSemaphoreLimit_Call) Run

func (*SyncQueries_CreateSemaphoreLimit_Call) RunAndReturn

type SyncQueries_DeleteLock_Call

type SyncQueries_DeleteLock_Call struct {
	*mock.Call
}

SyncQueries_DeleteLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteLock'

func (*SyncQueries_DeleteLock_Call) Return

func (*SyncQueries_DeleteLock_Call) Run

func (*SyncQueries_DeleteLock_Call) RunAndReturn

func (_c *SyncQueries_DeleteLock_Call) RunAndReturn(run func(ctx context.Context, lockName string) error) *SyncQueries_DeleteLock_Call

type SyncQueries_DeleteSemaphoreLimit_Call

type SyncQueries_DeleteSemaphoreLimit_Call struct {
	*mock.Call
}

SyncQueries_DeleteSemaphoreLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSemaphoreLimit'

func (*SyncQueries_DeleteSemaphoreLimit_Call) Return

func (*SyncQueries_DeleteSemaphoreLimit_Call) Run

func (*SyncQueries_DeleteSemaphoreLimit_Call) RunAndReturn

type SyncQueries_Expecter

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

func (*SyncQueries_Expecter) AddToQueue

func (_e *SyncQueries_Expecter) AddToQueue(ctx interface{}, record interface{}) *SyncQueries_AddToQueue_Call

AddToQueue is a helper method to define mock.On call

  • ctx context.Context
  • record *db.StateRecord

func (*SyncQueries_Expecter) CheckQueueExists

func (_e *SyncQueries_Expecter) CheckQueueExists(ctx interface{}, semaphoreName interface{}, holderKey interface{}, controllerName interface{}) *SyncQueries_CheckQueueExists_Call

CheckQueueExists is a helper method to define mock.On call

  • ctx context.Context
  • semaphoreName string
  • holderKey string
  • controllerName string

func (*SyncQueries_Expecter) CreateSemaphoreLimit

func (_e *SyncQueries_Expecter) CreateSemaphoreLimit(ctx interface{}, name interface{}, sizeLimit interface{}) *SyncQueries_CreateSemaphoreLimit_Call

CreateSemaphoreLimit is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • sizeLimit int

func (*SyncQueries_Expecter) DeleteLock

func (_e *SyncQueries_Expecter) DeleteLock(ctx interface{}, lockName interface{}) *SyncQueries_DeleteLock_Call

DeleteLock is a helper method to define mock.On call

  • ctx context.Context
  • lockName string

func (*SyncQueries_Expecter) DeleteSemaphoreLimit

func (_e *SyncQueries_Expecter) DeleteSemaphoreLimit(ctx interface{}, name interface{}) *SyncQueries_DeleteSemaphoreLimit_Call

DeleteSemaphoreLimit is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*SyncQueries_Expecter) ExpireInactiveLocks

func (_e *SyncQueries_Expecter) ExpireInactiveLocks(ctx interface{}, inactiveTimeout interface{}) *SyncQueries_ExpireInactiveLocks_Call

ExpireInactiveLocks is a helper method to define mock.On call

  • ctx context.Context
  • inactiveTimeout time.Duration

func (*SyncQueries_Expecter) GetCurrentHolders

func (_e *SyncQueries_Expecter) GetCurrentHolders(ctx interface{}, sessionProxy interface{}, semaphoreName interface{}) *SyncQueries_GetCurrentHolders_Call

GetCurrentHolders is a helper method to define mock.On call

  • ctx context.Context
  • sessionProxy *sqldb.SessionProxy
  • semaphoreName string

func (*SyncQueries_Expecter) GetCurrentPending

func (_e *SyncQueries_Expecter) GetCurrentPending(ctx interface{}, semaphoreName interface{}) *SyncQueries_GetCurrentPending_Call

GetCurrentPending is a helper method to define mock.On call

  • ctx context.Context
  • semaphoreName string

func (*SyncQueries_Expecter) GetCurrentState

func (_e *SyncQueries_Expecter) GetCurrentState(ctx interface{}, sessionProxy interface{}, semaphoreName interface{}, held interface{}) *SyncQueries_GetCurrentState_Call

GetCurrentState is a helper method to define mock.On call

  • ctx context.Context
  • sessionProxy *sqldb.SessionProxy
  • semaphoreName string
  • held bool

func (*SyncQueries_Expecter) GetExistingLocks

func (_e *SyncQueries_Expecter) GetExistingLocks(ctx interface{}, lockName interface{}, controllerName interface{}) *SyncQueries_GetExistingLocks_Call

GetExistingLocks is a helper method to define mock.On call

  • ctx context.Context
  • lockName string
  • controllerName string

func (*SyncQueries_Expecter) GetOrderedQueue

func (_e *SyncQueries_Expecter) GetOrderedQueue(ctx interface{}, sessionProxy interface{}, semaphoreName interface{}, inactiveTimeout interface{}) *SyncQueries_GetOrderedQueue_Call

GetOrderedQueue is a helper method to define mock.On call

  • ctx context.Context
  • sessionProxy *sqldb.SessionProxy
  • semaphoreName string
  • inactiveTimeout time.Duration

func (*SyncQueries_Expecter) GetPendingInQueue

func (_e *SyncQueries_Expecter) GetPendingInQueue(ctx interface{}, sessionProxy interface{}, semaphoreName interface{}, holderKey interface{}, controllerName interface{}) *SyncQueries_GetPendingInQueue_Call

GetPendingInQueue is a helper method to define mock.On call

  • ctx context.Context
  • sessionProxy *sqldb.SessionProxy
  • semaphoreName string
  • holderKey string
  • controllerName string

func (*SyncQueries_Expecter) GetSemaphoreLimit

func (_e *SyncQueries_Expecter) GetSemaphoreLimit(ctx interface{}, dbKey interface{}) *SyncQueries_GetSemaphoreLimit_Call

GetSemaphoreLimit is a helper method to define mock.On call

  • ctx context.Context
  • dbKey string

func (*SyncQueries_Expecter) GetStateCountsByController added in v4.1.0

func (_e *SyncQueries_Expecter) GetStateCountsByController(ctx interface{}, controllerName interface{}) *SyncQueries_GetStateCountsByController_Call

GetStateCountsByController is a helper method to define mock.On call

  • ctx context.Context
  • controllerName string

func (*SyncQueries_Expecter) InsertControllerHealth

func (_e *SyncQueries_Expecter) InsertControllerHealth(ctx interface{}, record interface{}) *SyncQueries_InsertControllerHealth_Call

InsertControllerHealth is a helper method to define mock.On call

  • ctx context.Context
  • record *db.ControllerHealthRecord

func (*SyncQueries_Expecter) InsertHeldState

func (_e *SyncQueries_Expecter) InsertHeldState(ctx interface{}, sessionProxy interface{}, record interface{}) *SyncQueries_InsertHeldState_Call

InsertHeldState is a helper method to define mock.On call

  • ctx context.Context
  • sessionProxy *sqldb.SessionProxy
  • record *db.StateRecord

func (*SyncQueries_Expecter) InsertLock

func (_e *SyncQueries_Expecter) InsertLock(ctx interface{}, record interface{}) *SyncQueries_InsertLock_Call

InsertLock is a helper method to define mock.On call

  • ctx context.Context
  • record *db.LockRecord

func (*SyncQueries_Expecter) ReleaseHeld

func (_e *SyncQueries_Expecter) ReleaseHeld(ctx interface{}, semaphoreName interface{}, key interface{}, controllerName interface{}) *SyncQueries_ReleaseHeld_Call

ReleaseHeld is a helper method to define mock.On call

  • ctx context.Context
  • semaphoreName string
  • key string
  • controllerName string

func (*SyncQueries_Expecter) RemoveFromQueue

func (_e *SyncQueries_Expecter) RemoveFromQueue(ctx interface{}, semaphoreName interface{}, holderKey interface{}, controllerName interface{}) *SyncQueries_RemoveFromQueue_Call

RemoveFromQueue is a helper method to define mock.On call

  • ctx context.Context
  • semaphoreName string
  • holderKey string
  • controllerName string

func (*SyncQueries_Expecter) UpdateControllerTimestamp

func (_e *SyncQueries_Expecter) UpdateControllerTimestamp(ctx interface{}, controllerName interface{}, timestamp interface{}) *SyncQueries_UpdateControllerTimestamp_Call

UpdateControllerTimestamp is a helper method to define mock.On call

  • ctx context.Context
  • controllerName string
  • timestamp time.Time

func (*SyncQueries_Expecter) UpdateSemaphoreLimit

func (_e *SyncQueries_Expecter) UpdateSemaphoreLimit(ctx interface{}, name interface{}, sizeLimit interface{}) *SyncQueries_UpdateSemaphoreLimit_Call

UpdateSemaphoreLimit is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • sizeLimit int

func (*SyncQueries_Expecter) UpdateStateToHeld

func (_e *SyncQueries_Expecter) UpdateStateToHeld(ctx interface{}, sessionProxy interface{}, semaphoreName interface{}, holderKey interface{}, controllerName interface{}) *SyncQueries_UpdateStateToHeld_Call

UpdateStateToHeld is a helper method to define mock.On call

  • ctx context.Context
  • sessionProxy *sqldb.SessionProxy
  • semaphoreName string
  • holderKey string
  • controllerName string

type SyncQueries_ExpireInactiveLocks_Call

type SyncQueries_ExpireInactiveLocks_Call struct {
	*mock.Call
}

SyncQueries_ExpireInactiveLocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExpireInactiveLocks'

func (*SyncQueries_ExpireInactiveLocks_Call) Return

func (*SyncQueries_ExpireInactiveLocks_Call) Run

func (*SyncQueries_ExpireInactiveLocks_Call) RunAndReturn

type SyncQueries_GetCurrentHolders_Call

type SyncQueries_GetCurrentHolders_Call struct {
	*mock.Call
}

SyncQueries_GetCurrentHolders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentHolders'

func (*SyncQueries_GetCurrentHolders_Call) Return

func (*SyncQueries_GetCurrentHolders_Call) Run

func (*SyncQueries_GetCurrentHolders_Call) RunAndReturn

func (_c *SyncQueries_GetCurrentHolders_Call) RunAndReturn(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string) ([]db.StateRecord, error)) *SyncQueries_GetCurrentHolders_Call

type SyncQueries_GetCurrentPending_Call

type SyncQueries_GetCurrentPending_Call struct {
	*mock.Call
}

SyncQueries_GetCurrentPending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentPending'

func (*SyncQueries_GetCurrentPending_Call) Return

func (*SyncQueries_GetCurrentPending_Call) Run

func (*SyncQueries_GetCurrentPending_Call) RunAndReturn

type SyncQueries_GetCurrentState_Call

type SyncQueries_GetCurrentState_Call struct {
	*mock.Call
}

SyncQueries_GetCurrentState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentState'

func (*SyncQueries_GetCurrentState_Call) Return

func (*SyncQueries_GetCurrentState_Call) Run

func (_c *SyncQueries_GetCurrentState_Call) Run(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, held bool)) *SyncQueries_GetCurrentState_Call

func (*SyncQueries_GetCurrentState_Call) RunAndReturn

func (_c *SyncQueries_GetCurrentState_Call) RunAndReturn(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, held bool) ([]db.StateRecord, error)) *SyncQueries_GetCurrentState_Call

type SyncQueries_GetExistingLocks_Call

type SyncQueries_GetExistingLocks_Call struct {
	*mock.Call
}

SyncQueries_GetExistingLocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExistingLocks'

func (*SyncQueries_GetExistingLocks_Call) Return

func (*SyncQueries_GetExistingLocks_Call) Run

func (_c *SyncQueries_GetExistingLocks_Call) Run(run func(ctx context.Context, lockName string, controllerName string)) *SyncQueries_GetExistingLocks_Call

func (*SyncQueries_GetExistingLocks_Call) RunAndReturn

func (_c *SyncQueries_GetExistingLocks_Call) RunAndReturn(run func(ctx context.Context, lockName string, controllerName string) ([]db.LockRecord, error)) *SyncQueries_GetExistingLocks_Call

type SyncQueries_GetOrderedQueue_Call

type SyncQueries_GetOrderedQueue_Call struct {
	*mock.Call
}

SyncQueries_GetOrderedQueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrderedQueue'

func (*SyncQueries_GetOrderedQueue_Call) Return

func (*SyncQueries_GetOrderedQueue_Call) Run

func (_c *SyncQueries_GetOrderedQueue_Call) Run(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, inactiveTimeout time.Duration)) *SyncQueries_GetOrderedQueue_Call

func (*SyncQueries_GetOrderedQueue_Call) RunAndReturn

func (_c *SyncQueries_GetOrderedQueue_Call) RunAndReturn(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, inactiveTimeout time.Duration) ([]db.StateRecord, error)) *SyncQueries_GetOrderedQueue_Call

type SyncQueries_GetPendingInQueue_Call

type SyncQueries_GetPendingInQueue_Call struct {
	*mock.Call
}

SyncQueries_GetPendingInQueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingInQueue'

func (*SyncQueries_GetPendingInQueue_Call) Return

func (*SyncQueries_GetPendingInQueue_Call) Run

func (_c *SyncQueries_GetPendingInQueue_Call) Run(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, holderKey string, controllerName string)) *SyncQueries_GetPendingInQueue_Call

func (*SyncQueries_GetPendingInQueue_Call) RunAndReturn

func (_c *SyncQueries_GetPendingInQueue_Call) RunAndReturn(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, holderKey string, controllerName string) ([]db.StateRecord, error)) *SyncQueries_GetPendingInQueue_Call

type SyncQueries_GetSemaphoreLimit_Call

type SyncQueries_GetSemaphoreLimit_Call struct {
	*mock.Call
}

SyncQueries_GetSemaphoreLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSemaphoreLimit'

func (*SyncQueries_GetSemaphoreLimit_Call) Return

func (*SyncQueries_GetSemaphoreLimit_Call) Run

func (*SyncQueries_GetSemaphoreLimit_Call) RunAndReturn

type SyncQueries_GetStateCountsByController_Call added in v4.1.0

type SyncQueries_GetStateCountsByController_Call struct {
	*mock.Call
}

SyncQueries_GetStateCountsByController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStateCountsByController'

func (*SyncQueries_GetStateCountsByController_Call) Return added in v4.1.0

func (*SyncQueries_GetStateCountsByController_Call) Run added in v4.1.0

func (*SyncQueries_GetStateCountsByController_Call) RunAndReturn added in v4.1.0

type SyncQueries_InsertControllerHealth_Call

type SyncQueries_InsertControllerHealth_Call struct {
	*mock.Call
}

SyncQueries_InsertControllerHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertControllerHealth'

func (*SyncQueries_InsertControllerHealth_Call) Return

func (*SyncQueries_InsertControllerHealth_Call) Run

func (*SyncQueries_InsertControllerHealth_Call) RunAndReturn

type SyncQueries_InsertHeldState_Call

type SyncQueries_InsertHeldState_Call struct {
	*mock.Call
}

SyncQueries_InsertHeldState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertHeldState'

func (*SyncQueries_InsertHeldState_Call) Return

func (*SyncQueries_InsertHeldState_Call) Run

func (*SyncQueries_InsertHeldState_Call) RunAndReturn

type SyncQueries_InsertLock_Call

type SyncQueries_InsertLock_Call struct {
	*mock.Call
}

SyncQueries_InsertLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertLock'

func (*SyncQueries_InsertLock_Call) Return

func (*SyncQueries_InsertLock_Call) Run

func (*SyncQueries_InsertLock_Call) RunAndReturn

func (_c *SyncQueries_InsertLock_Call) RunAndReturn(run func(ctx context.Context, record *db.LockRecord) error) *SyncQueries_InsertLock_Call

type SyncQueries_ReleaseHeld_Call

type SyncQueries_ReleaseHeld_Call struct {
	*mock.Call
}

SyncQueries_ReleaseHeld_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseHeld'

func (*SyncQueries_ReleaseHeld_Call) Return

func (*SyncQueries_ReleaseHeld_Call) Run

func (_c *SyncQueries_ReleaseHeld_Call) Run(run func(ctx context.Context, semaphoreName string, key string, controllerName string)) *SyncQueries_ReleaseHeld_Call

func (*SyncQueries_ReleaseHeld_Call) RunAndReturn

func (_c *SyncQueries_ReleaseHeld_Call) RunAndReturn(run func(ctx context.Context, semaphoreName string, key string, controllerName string) error) *SyncQueries_ReleaseHeld_Call

type SyncQueries_RemoveFromQueue_Call

type SyncQueries_RemoveFromQueue_Call struct {
	*mock.Call
}

SyncQueries_RemoveFromQueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveFromQueue'

func (*SyncQueries_RemoveFromQueue_Call) Return

func (*SyncQueries_RemoveFromQueue_Call) Run

func (_c *SyncQueries_RemoveFromQueue_Call) Run(run func(ctx context.Context, semaphoreName string, holderKey string, controllerName string)) *SyncQueries_RemoveFromQueue_Call

func (*SyncQueries_RemoveFromQueue_Call) RunAndReturn

func (_c *SyncQueries_RemoveFromQueue_Call) RunAndReturn(run func(ctx context.Context, semaphoreName string, holderKey string, controllerName string) error) *SyncQueries_RemoveFromQueue_Call

type SyncQueries_UpdateControllerTimestamp_Call

type SyncQueries_UpdateControllerTimestamp_Call struct {
	*mock.Call
}

SyncQueries_UpdateControllerTimestamp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateControllerTimestamp'

func (*SyncQueries_UpdateControllerTimestamp_Call) Return

func (*SyncQueries_UpdateControllerTimestamp_Call) Run

func (*SyncQueries_UpdateControllerTimestamp_Call) RunAndReturn

type SyncQueries_UpdateSemaphoreLimit_Call

type SyncQueries_UpdateSemaphoreLimit_Call struct {
	*mock.Call
}

SyncQueries_UpdateSemaphoreLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSemaphoreLimit'

func (*SyncQueries_UpdateSemaphoreLimit_Call) Return

func (*SyncQueries_UpdateSemaphoreLimit_Call) Run

func (*SyncQueries_UpdateSemaphoreLimit_Call) RunAndReturn

type SyncQueries_UpdateStateToHeld_Call

type SyncQueries_UpdateStateToHeld_Call struct {
	*mock.Call
}

SyncQueries_UpdateStateToHeld_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStateToHeld'

func (*SyncQueries_UpdateStateToHeld_Call) Return

func (*SyncQueries_UpdateStateToHeld_Call) Run

func (_c *SyncQueries_UpdateStateToHeld_Call) Run(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, holderKey string, controllerName string)) *SyncQueries_UpdateStateToHeld_Call

func (*SyncQueries_UpdateStateToHeld_Call) RunAndReturn

func (_c *SyncQueries_UpdateStateToHeld_Call) RunAndReturn(run func(ctx context.Context, sessionProxy *sqldb.SessionProxy, semaphoreName string, holderKey string, controllerName string) error) *SyncQueries_UpdateStateToHeld_Call

Jump to

Keyboard shortcuts

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