Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UppercaseActivity ¶
UppercaseActivity uppercases the given string.
func UppercaseWorkflow ¶
UppercaseWorkflow is a workflow that accepts requests to uppercase strings via signals and provides responses via query.
The "request" signal accepts a Request.
The "response" query accepts a request ID.
Types ¶
type Request ¶
type Request struct { // ID of the request, also set on the response. ID string `json:"id"` // String to be uppercased. Input string `json:"input"` }
Request is a request to uppercase a string, passed as a signal argument to UppercaseWorkflow.
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
Requester can request uppercasing of strings.
func NewRequester ¶
func NewRequester(options RequesterOptions) (*Requester, error)
NewRequester creates a new Requester for the given options.
type RequesterOptions ¶
type RequesterOptions struct { // Client to the Temporal server. Required. Client client.Client // ID of the workflow listening for signals to uppercase. Required. TargetWorkflowID string // Frequency of query for response. Default 300ms. ResponseQueryInterval time.Duration // How long to wait for response. Default 4 seconds. ResponseTimeout time.Duration }
RequesterOptions are options for NewRequester.
Click to show internal directories.
Click to hide internal directories.