Documentation
¶
Index ¶
- Variables
- func Export() error
- func Guard(c *gin.Context)
- func Load(cfg config.Config) error
- func LoadAndExport(cfg config.Config) error
- func LoadFrom(dir string, prefix string) error
- type ActionDSL
- type DSL
- type FieldsDSL
- type FilterLayoutDSL
- type LayoutDSL
- type OperationLayoutDSL
- type ViewLayoutDSL
Constants ¶
This section is empty.
Variables ¶
View Source
var Charts map[string]*DSL = map[string]*DSL{}
Charts the loaded chart widgets
Functions ¶
Types ¶
type ActionDSL ¶
type ActionDSL struct {
Setting *action.Process `json:"setting,omitempty"`
Component *action.Process `json:"-"`
Data *action.Process `json:"data,omitempty"`
BeforeData *hook.Before `json:"before:data,omitempty"`
AfterData *hook.After `json:"after:data,omitempty"`
}
ActionDSL the chart action DSL
func (*ActionDSL) SetDefaultProcess ¶
func (act *ActionDSL) SetDefaultProcess()
SetDefaultProcess set the default value of action
type DSL ¶
type DSL struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Action *ActionDSL `json:"action"`
Layout *LayoutDSL `json:"layout"`
Fields *FieldsDSL `json:"fields"`
Config map[string]interface{} `json:"config,omitempty"`
CProps field.CloudProps `json:"-"`
compute.Computable
}
DSL the chart DSL
type FieldsDSL ¶
type FieldsDSL struct {
Filter field.Filters `json:"filter,omitempty"`
Chart field.Columns `json:"chart,omitempty"`
// contains filtered or unexported fields
}
FieldsDSL the chart fields DSL
type FilterLayoutDSL ¶
type FilterLayoutDSL struct {
Actions component.Actions `json:"actions,omitempty"`
Columns component.Instances `json:"columns,omitempty"`
}
FilterLayoutDSL layout.filter
type LayoutDSL ¶
type LayoutDSL struct {
Operation *OperationLayoutDSL `json:"operation,omitempty"`
Chart *ViewLayoutDSL `json:"chart,omitempty"`
Filter *FilterLayoutDSL `json:"filter,omitempty"`
}
LayoutDSL the chart layout DSL
type OperationLayoutDSL ¶
OperationLayoutDSL layout.operation
type ViewLayoutDSL ¶
ViewLayoutDSL layout.form
Click to show internal directories.
Click to hide internal directories.