Versions in this module Expand all Collapse all v0 v0.0.2 Jun 13, 2024 Changes in this version + func Add(p Plugin) + func Execute(ctx *context.Context, conn db.Connection, navButtons types.Buttons, ...) *bytes.Buffer + func ExecuteWithCustomMenu(ctx *context.Context, navButtons types.Buttons, user models.UserModel, ...) *bytes.Buffer + func ExecuteWithMenu(ctx *context.Context, conn db.Connection, navButtons types.Buttons, ...) *bytes.Buffer + func Exist(p Plugin) bool + func GetAll(req remote_server.GetOnlineReq, token string) (Plugins, Page) + func GetHandler(app *context.App) context.HandlerMap + type Base struct + App *context.App + Conn db.Connection + Info Info + PlugName string + Services service.List + UI *ui.Service + URLPrefix string + func (b *Base) ExecuteTmpl(ctx *context.Context, panel types.Panel, options template.ExecuteOptions) *bytes.Buffer + func (b *Base) ExecuteTmplWithCustomMenu(ctx *context.Context, panel types.Panel, menu *menu.Menu, ...) *bytes.Buffer + func (b *Base) ExecuteTmplWithMenu(ctx *context.Context, panel types.Panel, options template.ExecuteOptions) *bytes.Buffer + func (b *Base) ExecuteTmplWithMenuAndNavButtons(ctx *context.Context, panel types.Panel, menu *menu.Menu, btns types.Buttons, ...) *bytes.Buffer + func (b *Base) ExecuteTmplWithNavButtons(ctx *context.Context, panel types.Panel, btns types.Buttons, ...) *bytes.Buffer + func (b *Base) GetGenerators() table.GeneratorList + func (b *Base) GetHandler() context.HandlerMap + func (b *Base) GetIndexURL() string + func (b *Base) GetInfo() Info + func (b *Base) GetSettingPage() table.Generator + func (b *Base) HTML(ctx *context.Context, panel types.Panel, options ...template.ExecuteOptions) + func (b *Base) HTMLBtns(ctx *context.Context, panel types.Panel, btns types.Buttons, ...) + func (b *Base) HTMLCustomMenu(ctx *context.Context, panel types.Panel, menu *menu.Menu, ...) + func (b *Base) HTMLFile(ctx *context.Context, path string, data map[string]interface{}, ...) + func (b *Base) HTMLFiles(ctx *context.Context, data map[string]interface{}, files []string, ...) + func (b *Base) HTMLMenu(ctx *context.Context, panel types.Panel, options ...template.ExecuteOptions) + func (b *Base) HTMLMenuWithBtns(ctx *context.Context, panel types.Panel, menu *menu.Menu, btns types.Buttons, ...) + func (b *Base) InitBase(srv service.List, prefix string) + func (b *Base) InitPlugin(services service.List) + func (b *Base) IsInstalled() bool + func (b *Base) Name() string + func (b *Base) NewMenu(data menu.NewMenuData) (int64, error) + func (b *Base) Prefix() string + func (b *Base) SetInfo(info Info) + func (b *Base) Title() string + func (b *Base) Uninstall() error + func (b *Base) Upgrade() error + type BasePlugin struct + IndexURL string + Info Info + Installed bool + func (b *BasePlugin) GetIndexURL() string + func (b *BasePlugin) GetInfo() Info + func (b *BasePlugin) IsInstalled() bool + func (b *BasePlugin) Name() string + type GetOnlineRes struct + Code int + Data GetOnlineResData + Msg string + type GetOnlineResData struct + Count int + HasMore bool + List []Info + Page Page + type Info struct + Agreement string + Author string + Banners []string + CanUpdate bool + CommentNum int64 + Cover string + CreateDate time.Time + Description string + Downloaded bool + ExtraDownloadUrl string + Features string + GoodNum int64 + GoodUUIDs []string + HasBought bool + Legal bool + MiniCover string + ModulePath string + Name string + OldVersion string + Order int64 + Price []string + Questions []string + SkipInstallation bool + Title string + UpdateDate time.Time + Url string + Uuid string + Version string + Website string + func (i Info) IsFree() bool + type Page struct + CSS string + HTML string + JS string + type Plugin interface + GetGenerators func() table.GeneratorList + GetHandler func() context.HandlerMap + GetIndexURL func() string + GetInfo func() Info + GetSettingPage func() table.Generator + InitPlugin func(services service.List) + IsInstalled func() bool + Name func() string + Prefix func() string + Uninstall func() error + Upgrade func() error + func FindByName(name string) (Plugin, bool) + func FindByNameAll(name string) (Plugin, bool) + func LoadFromPlugin(mod string) Plugin + func NewBasePluginWithInfo(info Info) Plugin + func NewBasePluginWithInfoAndIndexURL(info Info, u string, installed bool) Plugin + type Plugins []Plugin + func Get() Plugins + func GetPluginsWithInfos(info []Info) Plugins + func (pp Plugins) Add(p Plugin) Plugins + func (pp Plugins) Exist(p Plugin) bool