Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(app any) (etypes.ExecutorBuilder, error)
func RegisterHookFunc ¶
Types ¶
type FormItem ¶
type FormItem struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Info string `json:"info,omitempty" yaml:"info,omitempty"` Type string `json:"type,omitempty" yaml:"type,omitempty"` Options []string `json:"options,omitempty" yaml:"options,omitempty"` Pattern string `json:"pattern,omitempty" yaml:"pattern,omitempty"` HtmlAttr map[string]string `json:"html_attr,omitempty" yaml:"html_attr,omitempty"` Disabled bool `json:"disabled,omitempty" yaml:"disabled,omitempty"` }
type FormModel ¶
type FormModel struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Stages map[string]FormStage `json:"stages,omitempty" yaml:"stages,omitempty"` ExecHint []string `json:"exec_hint,omitempty" yaml:"exec_hint,omitempty"` OnLoad []Hook `json:"on_load,omitempty" yaml:"on_load,omitempty"` }
type FormStage ¶
type FormStage struct { About string `json:"about,omitempty" yaml:"about,omitempty"` Items []FormItem `json:"items,omitempty" yaml:"items,omitempty"` OnSubmit []Hook `json:"on_submit,omitempty" yaml:"on_submit,omitempty"` // validate data -> side_effect -> maybe_modify_data -> set_next_stage OnBuild []Hook `json:"on_build,omitempty" yaml:"on_build,omitempty"` // load_fileds -> set_data Data map[string]any `json:"data,omitempty" yaml:"data,omitempty"` }
type LoadRequest ¶
type Response ¶
type Response struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Ok bool `json:"ok,omitempty" yaml:"ok,omitempty"` Final bool `json:"final,omitempty" yaml:"final,omitempty"` Message string `json:"message,omitempty" yaml:"message,omitempty"` Items []FormItem `json:"items,omitempty" yaml:"items,omitempty"` Data map[string]any `json:"data,omitempty" yaml:"data,omitempty"` Stage string `json:"stage,omitempty" yaml:"stage,omitempty"` }
type SubmitRequest ¶
Click to show internal directories.
Click to hide internal directories.