Documentation ¶
Index ¶
- func DeserializeAttributes(eventType EventType, attributes []byte) (attr interface{}, err error)
- func SerializeAttributes(attributes interface{}) ([]byte, error)
- type ActivityCompletedAttributes
- type ActivityFailedAttributes
- type ActivityScheduledAttributes
- type Event
- type EventType
- type ExecutionCanceledAttributes
- type ExecutionCompletedAttributes
- type ExecutionStartedAttributes
- type HistoryEventOption
- type SideEffectResultAttributes
- type SignalReceivedAttributes
- type SubWorkflowCompletedAttributes
- type SubWorkflowFailedAttributes
- type SubWorkflowScheduledAttributes
- type TimerFiredAttributes
- type TimerScheduledAttributes
- type WorkflowEvent
- type WorkflowTaskFinishedAttributes
- type WorkflowTaskStartedAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeAttributes ¶
func SerializeAttributes ¶
Types ¶
type ActivityFailedAttributes ¶
type ActivityFailedAttributes struct {
Reason string
}
type Event ¶
type Event struct { // ID is a unique identifier for this event ID string Type EventType Timestamp time.Time // ScheduleEventID is used to correlate events belonging together // For example, if an activity is scheduled, ScheduleEventID of the schedule event and the // completion/failure event are the same. ScheduleEventID int // Attributes are event type specific attributes Attributes interface{} VisibleAt *time.Time }
func NewHistoryEvent ¶
func NewHistoryEvent(timestamp time.Time, eventType EventType, attributes interface{}, opts ...HistoryEventOption) Event
type EventType ¶
type EventType uint
const ( EventType_WorkflowExecutionStarted EventType EventType_WorkflowExecutionFinished EventType_WorkflowExecutionTerminated EventType_WorkflowExecutionCanceled EventType_WorkflowTaskStarted EventType_WorkflowTaskFinished EventType_SubWorkflowScheduled EventType_SubWorkflowCompleted EventType_SubWorkflowFailed EventType_ActivityScheduled EventType_ActivityCompleted EventType_ActivityFailed EventType_TimerScheduled EventType_TimerFired EventType_SignalReceived EventType_SideEffectResult )
type ExecutionCanceledAttributes ¶
type ExecutionCanceledAttributes struct{}
type HistoryEventOption ¶
type HistoryEventOption func(e *Event)
func ScheduleEventID ¶
func ScheduleEventID(scheduleEventID int) HistoryEventOption
func VisibleAt ¶
func VisibleAt(visibleAt time.Time) HistoryEventOption
type SubWorkflowFailedAttributes ¶
type SubWorkflowFailedAttributes struct {
Error string
}
type TimerFiredAttributes ¶
type WorkflowEvent ¶
type WorkflowEvent struct { WorkflowInstance core.WorkflowInstance HistoryEvent Event }
WorkflowEvent is a event addressed for a specific workflow instance
type WorkflowTaskFinishedAttributes ¶
type WorkflowTaskFinishedAttributes struct { }
type WorkflowTaskStartedAttributes ¶
type WorkflowTaskStartedAttributes struct { }
Source Files ¶
- activity_completed.go
- activity_failed.go
- activity_scheduled.go
- history.go
- serialization.go
- side_effect_result.go
- signal_received.go
- subworkflow_completed.go
- subworkflow_failed.go
- subworkflow_scheduled.go
- timer_fired.go
- timer_scheduled.go
- workflow_cancelled.go
- workflow_completed.go
- workflow_started.go
- workflow_task_finished.go
- workflow_task_started.go
- workflowevent.go
Click to show internal directories.
Click to hide internal directories.