Documentation
¶
Index ¶
- func AutoHeartbeat(ctx context.Context)
- func NewClient(deploymentName, buildID, temporalNamespace string, metricsPort int) (c client.Client, stopFunc func())
- func NewHTTPClient(minDelay, maxDelay time.Duration) *http.Client
- func NewVersionedWorker(opts worker.Options) (w worker.Worker, stopFunc func())
- func SetActivityTimeout(ctx workflow.Context, startToClose time.Duration) workflow.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoHeartbeat ¶
AutoHeartbeat sends activity heartbeats in a loop until the activity completes. It is meant to be run in a background goroutine. Example usage:
func MyActivity(ctx context.Context) error {
go AutoHeartbeat(ctx)
// ...
return nil
}
func NewHTTPClient ¶
NewHTTPClient creates an HTTP client with random network delays uniformly distributed in [minDelay, maxDelay).
func NewVersionedWorker ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.