Documentation
¶
Overview ¶
Package semaphoreclient is the Temporal client side of the mobile-device semaphore workflow, shared by the HTTP handlers and the enqueue activity.
Index ¶
- Variables
- func CancelRun(ctx context.Context, c client.Client, deviceID string, ...) (mobiledevicesemaphore.MobileDeviceSemaphoreRunStatusView, error)
- func EnqueueRun(ctx context.Context, c client.Client, deviceID string, ...) (mobiledevicesemaphore.MobileDeviceSemaphoreEnqueueRunResponse, error)
- func EnsureWorkflow(ctx context.Context, c client.Client, deviceID string) error
- func UpdateID(prefix, deviceID, ticketID string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRunTicketNotFound = errors.New("run ticket not found")
ErrRunTicketNotFound signals that a run ticket could not be located in a device queue.
Functions ¶
func CancelRun ¶
func CancelRun( ctx context.Context, c client.Client, deviceID string, req mobiledevicesemaphore.MobileDeviceSemaphoreRunCancelRequest, ) (mobiledevicesemaphore.MobileDeviceSemaphoreRunStatusView, error)
CancelRun removes a run ticket from the device semaphore.
func EnqueueRun ¶
func EnqueueRun( ctx context.Context, c client.Client, deviceID string, req mobiledevicesemaphore.MobileDeviceSemaphoreEnqueueRunRequest, ) (mobiledevicesemaphore.MobileDeviceSemaphoreEnqueueRunResponse, error)
EnqueueRun enqueues a run ticket on the device semaphore, starting the semaphore workflow in the same call when it is not running.
func EnsureWorkflow ¶
EnsureWorkflow starts the device semaphore workflow unless it is already running.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.