Documentation ¶
Index ¶
Constants ¶
const TypeMsg string = "msg"
const TypeNothing string = "nothing"
Variables ¶
This section is empty.
Functions ¶
func ReadWait ¶ added in v0.11.0
func ReadWait(envelope *utils.TypedEnvelope) (flows.Wait, error)
ReadWait reads a wait from the given typed envelope
func RegisterType ¶ added in v0.11.0
RegisterType registers a new type of wait
Types ¶
type MsgWait ¶
type MsgWait struct {
// contains filtered or unexported fields
}
MsgWait is a wait which waits for an incoming message (i.e. a msg_received event)
func NewMsgWait ¶ added in v0.4.0
NewMsgWait creates a new message wait
func (*MsgWait) CanResume ¶ added in v0.4.0
CanResume returns true if a message event has been received
func (*MsgWait) Timeout ¶
func (w *MsgWait) Timeout() *int
Timeout returns the timeout of this wait in seconds or nil if no timeout is set
type NothingWait ¶ added in v0.4.0
type NothingWait struct {
// contains filtered or unexported fields
}
NothingWait is a wait which waits for nothing.. i.e. a chance for the caller to do something and resume immediately
func (*NothingWait) Begin ¶ added in v0.4.0
func (w *NothingWait) Begin(run flows.FlowRun, step flows.Step)
Begin beings waiting at this wait
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) Timeout ¶ added in v0.9.10
func (w *NothingWait) Timeout() *int
Timeout would return the timeout of this wait for wait types that do that
func (*NothingWait) TimeoutOn ¶ added in v0.9.10
TimeoutOn would return when this wait times out for wait types that do that
func (*NothingWait) Type ¶ added in v0.4.0
func (w *NothingWait) Type() string
Type returns the type of this wait