Documentation ¶
Index ¶
Constants ¶
View Source
const TypeMsg string = "msg"
TypeMsg is the type of our message wait
Variables ¶
This section is empty.
Functions ¶
func ReadActivatedWait ¶ added in v0.33.0
func ReadActivatedWait(data json.RawMessage) (flows.ActivatedWait, error)
ReadActivatedWait reads an activated wait from the given JSON
Types ¶
type ActivatedMsgWait ¶ added in v0.33.0
type ActivatedMsgWait struct {
// contains filtered or unexported fields
}
func NewActivatedMsgWait ¶ added in v0.33.2
func NewActivatedMsgWait(timeoutSeconds *int, hint flows.Hint) *ActivatedMsgWait
func (*ActivatedMsgWait) Hint ¶ added in v0.33.0
func (w *ActivatedMsgWait) Hint() flows.Hint
Hint returns the hint (optional)
func (*ActivatedMsgWait) MarshalJSON ¶ added in v0.33.0
func (w *ActivatedMsgWait) MarshalJSON() ([]byte, error)
MarshalJSON marshals this wait into JSON
func (*ActivatedMsgWait) TimeoutSeconds ¶ added in v0.33.1
func (w *ActivatedMsgWait) TimeoutSeconds() *int
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 ¶
NewMsgWait creates a new message wait
func (*MsgWait) Begin ¶
func (w *MsgWait) Begin(run flows.FlowRun, log flows.EventCallback) flows.ActivatedWait
Begin beings waiting at this wait
func (*MsgWait) MarshalJSON ¶
MarshalJSON marshals this wait into JSON
type Timeout ¶ added in v0.33.0
type Timeout struct { Seconds_ int `json:"seconds" validate:"required"` CategoryUUID_ flows.CategoryUUID `json:"category_uuid" validate:"required,uuid4"` }
func NewTimeout ¶ added in v0.33.0
func NewTimeout(seconds int, categoryUUID flows.CategoryUUID) *Timeout
func (*Timeout) CategoryUUID ¶ added in v0.33.0
func (t *Timeout) CategoryUUID() flows.CategoryUUID
Click to show internal directories.
Click to hide internal directories.