Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
@Get detail info of plugins @Description GET /plugininfo @Description RETURN SAMPLE @Tags framework/plugininfo @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Router /plugininfo [get]
func GetPluginMetas ¶ added in v0.15.0
@Get name list of plugins @Description GET /plugins @Description RETURN SAMPLE @Tags framework/plugins @Success 200 {object} PluginMetas @Failure 400 {string} errcode.Error "Bad Request" @Router /plugins [get]
Types ¶
type PluginInfo ¶
type PluginInfo struct {
Name string `json:"name"`
Description string `json:"description"`
Tables []*TableInfos `json:"tables"`
TaskMeta []SubTaskMeta `json:"task_mata"`
}
func NewPluginInfo ¶
func NewPluginInfo() *PluginInfo
type PluginMeta ¶ added in v0.15.0
type PluginMeta struct {
Plugin string `json:"plugin"`
Metric PluginMetric `json:"metric"`
}
type PluginMetas ¶ added in v0.15.0
type PluginMetas []PluginMeta
type PluginMetric ¶ added in v0.15.0
type SubTaskMeta ¶
type SubTaskMeta struct {
Name string `json:"name"`
Required bool `json:"required"`
EnabledByDefault bool `json:"enabled_by_default"`
Description string `json:"description"`
DomainTypes []string `json:"domain_types"`
}
func CreateSubTaskMeta ¶
func CreateSubTaskMeta(subTaskMeta []core.SubTaskMeta) []SubTaskMeta
type TableInfos ¶
type TableInfos struct {
TableName string `json:"table_name"`
Field []*TableInfo `json:"field"`
Error *string `json:"error"`
}
func NewTableInfos ¶
func NewTableInfos(table dal.Tabler) *TableInfos
type TotalInfo ¶
type TotalInfo struct {
DomainInfos []*TableInfos
PluginInfos []*PluginInfo
}
func NewTotalInfo ¶
func NewTotalInfo() *TotalInfo
Click to show internal directories.
Click to hide internal directories.