Documentation ¶
Index ¶
- Constants
- func MockMutexLock(env *testsuite.TestWorkflowEnvironment, resourceID string, mockError error)
- func MutexWorkflow(ctx workflow.Context, namespace string, resourceID string, ...) error
- func SampleWorkflowWithMutex(ctx workflow.Context, resourceID string) error
- func SignalWithStartMutexWorkflowActivity(ctx context.Context, namespace string, resourceID string, ...) (*workflow.Execution, error)
- type ContextKey
- type Mutex
- type UnlockFunc
Constants ¶
View Source
const ( // AcquireLockSignalName signal channel name for lock acquisition AcquireLockSignalName = "acquire-lock-event" // RequestLockSignalName channel name for request lock RequestLockSignalName = "request-lock-event" ClientContextKey ContextKey = "Client" )
Variables ¶
This section is empty.
Functions ¶
func MockMutexLock ¶
func MockMutexLock(env *testsuite.TestWorkflowEnvironment, resourceID string, mockError error)
MockMutexLock stubs mutex.Lock call
func MutexWorkflow ¶
func MutexWorkflow( ctx workflow.Context, namespace string, resourceID string, unlockTimeout time.Duration, ) error
MutexWorkflow used for locking a resource
func SampleWorkflowWithMutex ¶
Types ¶
type ContextKey ¶
type ContextKey string
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
type UnlockFunc ¶
type UnlockFunc func() error
Click to show internal directories.
Click to hide internal directories.