Documentation
¶
Overview ¶
Package flows is hello's side of Temporal: the hook it raises (Greet), the activities it offers to bindings (Echo, and Welcome backed by a workflow), its own workflows (GreetMany, declared for the console; Report, available for an administrative schedule) and the activities those run.
Index ¶
Constants ¶
const ( Compose = "Compose" Total = "Total" Record = "RecordGreeting" )
Registered activity names of the service's own workflows.
Variables ¶
var ErrTooLong = errors.New("echo: text over 1 KiB")
ErrTooLong: Echo refuses a text over 1 KiB; retrying cannot help.
Functions ¶
This section is empty.
Types ¶
type EchoIn ¶
type EchoIn struct {
Text string `json:"text"`
}
Payloads of the hook, the activities and the workflows.
type EchoOut ¶
type EchoOut struct {
Text string `json:"text"`
// Key is the execution's idempotency key (activity.InfoOf).
Key string `json:"key"`
}
Payloads of the hook, the activities and the workflows.
type Flows ¶
type Flows struct {
deps.Component
// Greet is answered by whatever backplane binds to hello.Greet.
Greet hook.Ref[GreetIn, GreetOut]
// contains filtered or unexported fields
}
Flows is a component: hook, activities and workflows of the service.
type GreetIn ¶
type GreetIn struct {
Name string `json:"name"`
}
Payloads of the hook, the activities and the workflows.
type GreetOut ¶
type GreetOut struct {
Text string `json:"text"`
}
Payloads of the hook, the activities and the workflows.