Documentation ¶
Index ¶
Constants ¶
View Source
const TypeMsg string = "msg"
View Source
const TypeNothing string = "nothing"
Variables ¶
This section is empty.
Functions ¶
func WaitFromEnvelope ¶
func WaitFromEnvelope(envelope *utils.TypedEnvelope) (flows.Wait, error)
Types ¶
type BaseWait ¶ added in v0.4.0
type BaseWait struct { }
Base of all wait types
func (*BaseWait) HasTimedOut ¶ added in v0.4.0
func (*BaseWait) ResumeByTimeOut ¶ added in v0.4.0
type MsgWait ¶
type MsgWait struct {
TimeoutWait
}
func NewMsgWait ¶ added in v0.4.0
func (*MsgWait) CanResume ¶ added in v0.4.0
CanResume returns true for a message wait if a message has now been received
func (*MsgWait) ResumeByTimeOut ¶ added in v0.4.0
type NothingWait ¶ added in v0.4.0
type NothingWait struct {
BaseWait
}
func (*NothingWait) Begin ¶ added in v0.4.0
func (w *NothingWait) Begin(run flows.FlowRun, step flows.Step)
func (*NothingWait) CanResume ¶ added in v0.4.0
func (w *NothingWait) CanResume(callerEvents []flows.Event) bool
CanResume always returns true for a nothing wait because it's not waiting for anything
func (*NothingWait) Type ¶ added in v0.4.0
func (w *NothingWait) Type() string
type TimeoutWait ¶ added in v0.4.0
type TimeoutWait struct { BaseWait Timeout *int `json:"timeout,omitempty"` TimeoutOn *time.Time `json:"timeout_on,omitempty"` }
Base of all wait types than can timeout
func (*TimeoutWait) Begin ¶ added in v0.4.0
func (w *TimeoutWait) Begin(run flows.FlowRun)
func (*TimeoutWait) HasTimedOut ¶ added in v0.4.0
func (w *TimeoutWait) HasTimedOut() bool
Click to show internal directories.
Click to hide internal directories.