Documentation
¶
Index ¶
- func Concat(args ...interface{}) (interface{}, error)
- func Download(args ...interface{}) (interface{}, error)
- func Export() error
- func Get(args ...interface{}) (interface{}, error)
- func Hide(args ...interface{}) (interface{}, error)
- func Trim(args ...interface{}) (interface{}, error)
- func Upload(args ...interface{}) (interface{}, error)
- type ActionDSL
- type ActionNode
- type ActionNodes
- type Actions
- type ActionsExport
- type CArg
- type CloudPropsDSL
- func (cProp CloudPropsDSL) ExecQuery(process *gouProcess.Process, query map[string]interface{}) (interface{}, error)
- func (cProp CloudPropsDSL) ExecUpload(process *gouProcess.Process, upload types.UploadFile) (interface{}, error)
- func (cProp *CloudPropsDSL) Parse(v interface{}) error
- func (cProp CloudPropsDSL) Path() string
- func (cProp CloudPropsDSL) Replace(data interface{}, replace func(cProp CloudPropsDSL) interface{}) error
- func (cProp CloudPropsDSL) UploadPath() string
- type Compute
- type ComputeHanlder
- type ConfirmActionDSL
- type DSL
- type DisabledDSL
- type InstanceDSL
- type Instances
- type PropsDSL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionDSL ¶
type ActionDSL struct {
ID string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Width int `json:"width,omitempty"`
Icon string `json:"icon,omitempty"`
Style string `json:"style,omitempty"`
Xpath string `json:"xpath,omitempty"`
DivideLine bool `json:"divideLine,omitempty"`
Hide []string `json:"hide,omitempty"` // Syntactic sugar ["add", "edit", "view"]
ShowWhenAdd bool `json:"showWhenAdd,omitempty"`
ShowWhenView bool `json:"showWhenView,omitempty"`
HideWhenEdit bool `json:"hideWhenEdit,omitempty"`
Props PropsDSL `json:"props,omitempty"`
Confirm *ConfirmActionDSL `json:"confirm,omitempty"`
Action ActionNodes `json:"action,omitempty"`
Disabled *DisabledDSL `json:"disabled,omitempty"`
}
ActionDSL the component action DSL
func (*ActionDSL) UnmarshalJSON ¶ added in v0.10.3
UnmarshalJSON for json UnmarshalJSON
type ActionNode ¶ added in v0.10.3
type ActionNode map[string]interface{}
ActionNode the action node
func (ActionNode) Custom ¶ added in v0.10.3
func (node ActionNode) Custom() bool
Custom check if the action node is custom
type ActionNodes ¶ added in v0.10.3
type ActionNodes []ActionNode
ActionNodes the action nodes
func (*ActionNodes) Parse ¶ added in v0.10.3
func (nodes *ActionNodes) Parse() error
Parse the custom nodes
func (*ActionNodes) UnmarshalJSON ¶ added in v0.10.3
func (nodes *ActionNodes) UnmarshalJSON(data []byte) error
UnmarshalJSON for json UnmarshalJSON
type ActionsExport ¶ added in v0.10.3
type ActionsExport struct {
Type string `json:"type,omitempty"`
Xpath string `json:"xpath"`
Actions Actions `json:"actions,omitempty"`
}
ActionsExport the export actions
type CArg ¶
type CArg struct {
IsExp bool
// contains filtered or unexported fields
}
CArg compute interface{}
func (*CArg) UnmarshalJSON ¶
UnmarshalJSON for JSON parse
type CloudPropsDSL ¶
type CloudPropsDSL struct {
Xpath string `json:"xpath,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Process string `json:"process,omitempty"`
Query map[string]interface{} `json:"query,omitempty"`
}
CloudPropsDSL the cloud props
func (CloudPropsDSL) ExecQuery ¶
func (cProp CloudPropsDSL) ExecQuery(process *gouProcess.Process, query map[string]interface{}) (interface{}, error)
ExecQuery execute query
func (CloudPropsDSL) ExecUpload ¶
func (cProp CloudPropsDSL) ExecUpload(process *gouProcess.Process, upload types.UploadFile) (interface{}, error)
ExecUpload execute upload
func (*CloudPropsDSL) Parse ¶
func (cProp *CloudPropsDSL) Parse(v interface{}) error
Parse parse cloud props
func (CloudPropsDSL) Replace ¶
func (cProp CloudPropsDSL) Replace(data interface{}, replace func(cProp CloudPropsDSL) interface{}) error
Replace xpath
func (CloudPropsDSL) UploadPath ¶
func (cProp CloudPropsDSL) UploadPath() string
UploadPath api UploadPath
type Compute ¶
Compute process
func (Compute) MarshalJSON ¶
MarshalJSON Custom JSON parse
func (*Compute) UnmarshalJSON ¶
UnmarshalJSON Custom JSON parse
type ComputeHanlder ¶
type ComputeHanlder func(args ...interface{}) (interface{}, error)
ComputeHanlder computeHanlder
type ConfirmActionDSL ¶
type ConfirmActionDSL struct {
Title string `json:"title,omitempty"`
Desc string `json:"desc,omitempty"`
}
ConfirmActionDSL action.confirm
type DSL ¶
type DSL struct {
Bind string `json:"bind,omitempty"`
Type string `json:"type,omitempty"`
Compute *Compute `json:"compute,omitempty"`
Props PropsDSL `json:"props,omitempty"`
}
DSL the component DSL
type DisabledDSL ¶ added in v0.10.3
type DisabledDSL struct {
Field string `json:"Field,omitempty"` // Syntactic sugar -> bind
Bind string `json:"bind,omitempty"`
Eq interface{} `json:"eq,omitempty"` // string | array<string> Syntactic sugar eq -> value
Equal interface{} `json:"equal,omitempty"` // string | array<string> Syntactic sugar equal -> value
Value interface{} `json:"value,omitempty"` // string | array<string>
}
DisabledDSL the action disabled
type InstanceDSL ¶
type InstanceDSL struct {
Name string `json:"name,omitempty"`
Width interface{} `json:"width,omitempty"`
Height interface{} `json:"height,omitempty"`
Fixed bool `json:"fixed,omitempty"` // for widget table
Rows []InstanceDSL `json:"rows,omitempty"`
}
InstanceDSL the component instance DSL
type PropsDSL ¶
type PropsDSL map[string]interface{}
PropsDSL component props
func (PropsDSL) CloudProps ¶
func (p PropsDSL) CloudProps(xpath, component string) (map[string]CloudPropsDSL, error)
CloudProps parse CloudProps