Documentation ¶
Index ¶
- Constants
- func Boot() error
- func Close()
- func Download(id string, version string) error
- func From(id string, manifest *Manifest) error
- func Load(id string) error
- func Open() error
- func ProxyApp(ctx *gin.Context)
- func Register(app *Manifest)
- func Store(id string, m *Manifest) error
- type License
- type Manifest
- type Menu
- type MenuItem
- type Page
- type Plugin
- type Process
- type Runner
Constants ¶
View Source
const HUB = "https://hub.iot-master.com"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manifest ¶
type Manifest struct { Id string `json:"id"` //ID Version string `json:"version,omitempty"` //版本 semver.Version Icon string `json:"icon,omitempty"` //图标 Name string `json:"name,omitempty"` //名称 Description string `json:"description,omitempty"` //说明 //菜单入口 Menus map[string]*Menu `json:"menus,omitempty"` //admin, project //外部插件 进程 //Process *Process `json:"process,omitempty"` Entry string `json:"entry,omitempty"` Delay int `json:"delay,omitempty"` //延迟启动 s //启动接口 Startup func() error `json:"-"` Shutdown func() error `json:"-"` //更多 Dependencies map[string]string `json:"dependencies,omitempty"` //依赖的插件,应用->版本 }
func GetPlugins ¶
func GetPlugins() []*Manifest
Click to show internal directories.
Click to hide internal directories.