Documentation ¶
Index ¶
- func ReadFlow(data json.RawMessage) (flows.Flow, error)
- func ReadFlows(data json.RawMessage) ([]flows.Flow, error)
- type LegacyFlow
- func (f *LegacyFlow) CreateRun(env flows.FlowEnvironment, contact *flows.Contact, parent flows.FlowRun) flows.FlowRun
- func (f *LegacyFlow) Default() interface{}
- func (f *LegacyFlow) GetNode(uuid flows.NodeUUID) flows.Node
- func (f *LegacyFlow) Language() utils.Language
- func (f *LegacyFlow) MarshalJSON() ([]byte, error)
- func (f *LegacyFlow) Name() string
- func (f *LegacyFlow) Nodes() []flows.Node
- func (f *LegacyFlow) Resolve(key string) interface{}
- func (f *LegacyFlow) String() string
- func (f *LegacyFlow) Translations() flows.FlowTranslations
- func (f *LegacyFlow) UUID() flows.FlowUUID
- func (f *LegacyFlow) UnmarshalJSON(data []byte) error
- func (f *LegacyFlow) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LegacyFlow ¶
type LegacyFlow struct {
// contains filtered or unexported fields
}
LegacyFlow imports an old-world flow so it can be exported anew
func ReadLegacyFlows ¶
func ReadLegacyFlows(data json.RawMessage) ([]LegacyFlow, error)
ReadLegacyFlows reads in legacy formatted flows
func (*LegacyFlow) MarshalJSON ¶
func (f *LegacyFlow) MarshalJSON() ([]byte, error)
MarshalJSON sends turns our legacy flow into bytes
func (*LegacyFlow) String ¶
func (f *LegacyFlow) String() string
String returns the default string value for this flow, which is just our name
func (*LegacyFlow) Translations ¶
func (f *LegacyFlow) Translations() flows.FlowTranslations
func (*LegacyFlow) UnmarshalJSON ¶
func (f *LegacyFlow) UnmarshalJSON(data []byte) error
UnmarshalJSON imports our JSON into a LegacyFlow object
Click to show internal directories.
Click to hide internal directories.