Documentation ¶
Index ¶
- func NewExit(uuid flows.ExitUUID, destination flows.NodeUUID, name string) flows.Exit
- func ReadFlow(data json.RawMessage) (flows.Flow, error)
- type LegacyFlow
- func (f *LegacyFlow) Default() interface{}
- func (f *LegacyFlow) ExpireAfterMinutes() int
- 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) Reference() *flows.FlowReference
- 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) Validate(assets flows.SessionAssets) 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 ReadLegacyFlow ¶ added in v0.4.0
func ReadLegacyFlow(data json.RawMessage) (*LegacyFlow, error)
func ReadLegacyFlows ¶
func ReadLegacyFlows(data []json.RawMessage) ([]*LegacyFlow, error)
ReadLegacyFlows reads in legacy formatted flows
func (*LegacyFlow) ExpireAfterMinutes ¶ added in v0.4.0
func (f *LegacyFlow) ExpireAfterMinutes() int
func (*LegacyFlow) MarshalJSON ¶
func (f *LegacyFlow) MarshalJSON() ([]byte, error)
MarshalJSON sends turns our legacy flow into bytes
func (*LegacyFlow) Reference ¶ added in v0.4.0
func (f *LegacyFlow) Reference() *flows.FlowReference
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) Validate ¶
func (f *LegacyFlow) Validate(assets flows.SessionAssets) error
Validates that structurally we are sane. IE, all required fields are present and all exits with destinations point to valid endpoints.
Click to show internal directories.
Click to hide internal directories.