Documentation ¶
Index ¶
- Constants
- func ExclusiveChoiceWorkflow(ctx workflow.Context) error
- type OrderActivities
- func (a *OrderActivities) GetBasketOrder(ctx context.Context) ([]string, error)
- func (a *OrderActivities) GetOrder() (string, error)
- func (a *OrderActivities) OrderApple(choice string) error
- func (a *OrderActivities) OrderBanana(choice string) error
- func (a *OrderActivities) OrderCherry(choice string) error
- func (a *OrderActivities) OrderOrange(choice string) error
Constants ¶
View Source
const ( OrderChoiceApple = "apple" OrderChoiceBanana = "banana" OrderChoiceCherry = "cherry" OrderChoiceOrange = "orange" )
Variables ¶
This section is empty.
Functions ¶
func ExclusiveChoiceWorkflow ¶
ExclusiveChoiceWorkflow Workflow definition.
Types ¶
type OrderActivities ¶
type OrderActivities struct {
OrderChoices []string
}
func (*OrderActivities) GetBasketOrder ¶
func (a *OrderActivities) GetBasketOrder(ctx context.Context) ([]string, error)
func (*OrderActivities) GetOrder ¶
func (a *OrderActivities) GetOrder() (string, error)
func (*OrderActivities) OrderApple ¶
func (a *OrderActivities) OrderApple(choice string) error
func (*OrderActivities) OrderBanana ¶
func (a *OrderActivities) OrderBanana(choice string) error
func (*OrderActivities) OrderCherry ¶
func (a *OrderActivities) OrderCherry(choice string) error
func (*OrderActivities) OrderOrange ¶
func (a *OrderActivities) OrderOrange(choice string) error
Click to show internal directories.
Click to hide internal directories.