package
Version:
v0.0.0-...-9af3d78
Opens a new window with list of versions in this module.
Published: Aug 17, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Action struct {
UUID string `json:"uuid"`
Attachments []string `json:"attachments"`
Text string `json:"text"`
Type string `json:"type"`
QuickReplies []string `json:"quick_replies"`
}
type Exit struct {
UUID string `json:"uuid"`
DestinationUUID *string `json:"destination_uuid"`
}
type Flow struct {
Name string `json:"name"`
UUID string `json:"uuid"`
SpecVersion string `json:"spec_version"`
Language string `json:"language"`
Type string `json:"type"`
Nodes []Node `json:"nodes"`
UI UI `json:"_ui"`
Revision int `json:"revision"`
ExpireAfterMinutes int `json:"expire_after_minutes"`
}
type Import struct {
Version string `json:"version"`
Site string `json:"site"`
Flows []Flow `json:"flows"`
Campaigns []struct{} `json:"campaigns"`
Triggers []struct{} `json:"triggers"`
Fields []struct{} `json:"fields"`
Groups []struct{} `json:"groups"`
}
type Node struct {
UUID string `json:"uuid"`
Actions []Action `json:"actions"`
Exits []Exit `json:"exits"`
}
type Position struct {
Left int `json:"left"`
Top int `json:"top"`
}
func UIFromNodes(nodes []Node) UI
type UINode struct {
Position Position `json:"position"`
Type string `json:"type"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.