Documentation ¶
Index ¶
- type CancelTimerCommandAttr
- type Command
- func NewCancelTimerCommand(id, timerID int) Command
- func NewCompleteWorkflowCommand(id int, result payload.Payload, err error) Command
- func NewScheduleActivityTaskCommand(id int, name string, inputs []payload.Payload) Command
- func NewScheduleSubWorkflowCommand(id int, instanceID, name string, inputs []payload.Payload) Command
- func NewScheduleTimerCommand(id int, at time.Time) Command
- func NewSideEffectCommand(id int, result payload.Payload) Command
- type CommandState
- type CommandType
- type CompleteWorkflowCommandAttr
- type ScheduleActivityTaskCommandAttr
- type ScheduleSubWorkflowCommandAttr
- type ScheduleTimerCommandAttr
- type SideEffectCommandAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelTimerCommandAttr ¶
type CancelTimerCommandAttr struct {
TimerID int
}
type Command ¶
type Command struct { State CommandState ID int Type CommandType Attr interface{} }
func NewCancelTimerCommand ¶
type CommandState ¶
type CommandState int
const ( CommandState_Pending CommandState = iota CommandState_Committed CommandState_Done )
type CommandType ¶
type CommandType int
const ( CommandType_ScheduleActivityTask CommandType CommandType_ScheduleSubWorkflow CommandType_ScheduleTimer CommandType_CancelTimer CommandType_SideEffect CommandType_CompleteWorkflow )
type SideEffectCommandAttr ¶
Click to show internal directories.
Click to hide internal directories.