Documentation ¶
Index ¶
- func NewBuilder(app any) (etypes.ExecutorBuilder, error)
- func RegisterHookFunc(name string, hfunc HookFunc)
- type BuildRequest
- type BuildRespone
- type DashModel
- type Hook
- type HookFunc
- type Index
- type LoadRequest
- type LoadResponse
- type PageDash
- type Panel
- type PdBuilder
- type PdCtx
- type Section
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(app any) (etypes.ExecutorBuilder, error)
func RegisterHookFunc ¶
Types ¶
type BuildRequest ¶
type BuildRequest struct {
Options any `json:"options,omitempty"`
}
type BuildRespone ¶
type BuildRespone struct {
Id string `json:"options,omitempty"`
}
type DashModel ¶
type DashModel struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Sections []Section `json:"sections,omitempty" yaml:"sections,omitempty"` OnLoad []Hook `json:"on_load,omitempty" yaml:"on_load,omitempty"` OnBuild []Hook `json:"on_build,omitempty" yaml:"on_build,omitempty"` StaticData map[string]any `json:"static_data,omitempty" yaml:"static_data,omitempty"` Sources map[string]Source `json:"sources,omitempty" yaml:"sources,omitempty"` }
type LoadRequest ¶
type LoadResponse ¶
type LoadResponse struct { Name string `json:"name,omitempty"` Data map[string]any `json:"data,omitempty"` Sources map[string]Source `json:"sources,omitempty"` Sections []Section `json:"sections,omitempty"` ActiveKey string `json:"active_key,omitempty"` BuildDate string `json:"build_date,omitempty"` PreviousKeys map[string]string `json:"previous_keys,omitempty"` }
type Panel ¶
type Panel struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Type string `json:"type,omitempty" yaml:"type,omitempty"` Info string `json:"info,omitempty" yaml:"info,omitempty"` ViewOpts map[string]any `json:"view_opts,omitempty" yaml:"view_opts,omitempty"` DataOpts map[string]any `json:"data_opts,omitempty" yaml:"data_opts,omitempty"` Source string `json:"source,omitempty" yaml:"source,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.