Documentation ¶
Index ¶
- func NewContextForContact(contact *flows.Contact, run flows.FlowRun) flows.Context
- func NewRun(env flows.FlowEnvironment, flow flows.Flow, contact *flows.Contact, ...) flows.FlowRun
- func ReadContext(data json.RawMessage) (flows.Context, error)
- func ReadRun(data json.RawMessage) (flows.FlowRun, error)
- func ReadSession(data json.RawMessage) (flows.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContextForContact ¶
NewContextForContact creates a new context for the passed in contact
func NewRun ¶
func NewRun(env flows.FlowEnvironment, flow flows.Flow, contact *flows.Contact, parent flows.FlowRun) flows.FlowRun
NewRun initializes a new context and flow run for the passed in flow and contact
func ReadContext ¶
func ReadContext(data json.RawMessage) (flows.Context, error)
ReadContext decodes a context from the passed in JSON
func ReadRun ¶
func ReadRun(data json.RawMessage) (flows.FlowRun, error)
ReadRun decodes a run from the passed in JSON
func ReadSession ¶
func ReadSession(data json.RawMessage) (flows.Session, error)
ReadSession decodes a session from the passed in JSON
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.