Documentation ¶
Index ¶
- Constants
- func ReadWait(data json.RawMessage) (flows.Wait, error)
- type DialWait
- func (w *DialWait) Accepts(resume flows.Resume) bool
- func (w *DialWait) AllowedFlowTypes() []flows.FlowType
- func (w *DialWait) Begin(run flows.Run, log flows.EventCallback) bool
- func (w *DialWait) MarshalJSON() ([]byte, error)
- func (w *DialWait) Timeout() flows.Timeout
- func (w *DialWait) Type() string
- type MsgWait
- func (w *MsgWait) Accepts(resume flows.Resume) bool
- func (w *MsgWait) AllowedFlowTypes() []flows.FlowType
- func (w *MsgWait) Begin(run flows.Run, log flows.EventCallback) bool
- func (w *MsgWait) Hint() flows.Hint
- func (w *MsgWait) MarshalJSON() ([]byte, error)
- func (w *MsgWait) Timeout() flows.Timeout
- func (w *MsgWait) Type() string
- type Timeout
Constants ¶
View Source
const TypeDial string = "dial"
TypeDial is the type of our dial wait
View Source
const TypeMsg string = "msg"
TypeMsg is the type of our message wait
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DialWait ¶
type DialWait struct {
// contains filtered or unexported fields
}
DialWait is a wait which waits for a phone number to be dialed
func (*DialWait) AllowedFlowTypes ¶
AllowedFlowTypes returns the flow types which this wait is allowed to occur in
func (*DialWait) MarshalJSON ¶
MarshalJSON marshals this wait into JSON
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) AllowedFlowTypes ¶
AllowedFlowTypes returns the flow types which this wait is allowed to occur in
func (*MsgWait) MarshalJSON ¶
MarshalJSON marshals this wait into JSON
type Timeout ¶
type Timeout struct { Seconds_ int `json:"seconds" validate:"required"` CategoryUUID_ flows.CategoryUUID `json:"category_uuid" validate:"required,uuid4"` }
func NewTimeout ¶
func NewTimeout(seconds int, categoryUUID flows.CategoryUUID) *Timeout
func (*Timeout) CategoryUUID ¶
func (t *Timeout) CategoryUUID() flows.CategoryUUID
Click to show internal directories.
Click to hide internal directories.