Documentation ¶
Index ¶
- Constants
- func ReadWait(data json.RawMessage) (flows.Wait, error)
- func RegisterType(name string, f readFunc)
- type MsgWait
- func (w *MsgWait) Begin(run flows.FlowRun, log flows.EventCallback) bool
- func (w *MsgWait) End(resume flows.Resume, node flows.Node) error
- func (w *MsgWait) Hint() flows.Hint
- func (w *MsgWait) MarshalJSON() ([]byte, error)
- func (w *MsgWait) Timeout() *int
- func (w *MsgWait) TimeoutOn() *time.Time
- func (w *MsgWait) Type() string
Constants ¶
View Source
const TypeMsg string = "msg"
TypeMsg is the type of our message wait
Variables ¶
This section is empty.
Functions ¶
func ReadWait ¶ added in v0.11.0
func ReadWait(data json.RawMessage) (flows.Wait, error)
ReadWait reads a wait from the given JSON
func RegisterType ¶ added in v0.11.0
func RegisterType(name string, f readFunc)
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) MarshalJSON ¶ added in v0.24.0
MarshalJSON marshals this wait into JSON
func (*MsgWait) Timeout ¶
func (w *MsgWait) Timeout() *int
Timeout returns the timeout of this wait in seconds or nil if no timeout is set
Click to show internal directories.
Click to hide internal directories.