Documentation
¶
Index ¶
- Variables
- type OpenAPILifecycle
- func (o *OpenAPILifecycle) Disable(ctx plugins.BaseContext) error
- func (o *OpenAPILifecycle) Enable(ctx plugins.EnableContext) error
- func (o *OpenAPILifecycle) Install(ctx plugins.InstallContext) error
- func (o *OpenAPILifecycle) Start(ctx plugins.BaseContext) error
- func (o *OpenAPILifecycle) StartCron(ctx plugins.BaseContext, spec string) error
- func (o *OpenAPILifecycle) Stop(ctx plugins.BaseContext) error
- func (o *OpenAPILifecycle) Uninstall(ctx plugins.UninstallContext) error
- func (o *OpenAPILifecycle) Upgrade(ctx plugins.UpgradeContext) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Metadata = plugins.Module{ Meta: plugins.Meta{ Name: modules.PluginNameOpenAPI, Title: "OpenAPI插件", Version: "1.0.0", Description: "API密钥管理,用于程序化访问平台", }, Tables: []string{ "api_keys", }, Menus: []plugins.Menu{ { Key: "plugin_openapi_index", Title: "OpenAPI", Icon: "fa-solid fa-key", Order: 60, Children: []plugins.Menu{ { Key: "plugin_openapi_keys", Title: "API密钥", Icon: "fa-solid fa-key", EventType: "custom", CustomEvent: `() => loadJsonPage("/plugins/openapi/api_keys")`, Order: 100, }, }, }, }, Lifecycle: &OpenAPILifecycle{}, ManagementRouter: route.RegisterPluginMgmRoutes, }
Functions ¶
This section is empty.
Types ¶
type OpenAPILifecycle ¶
type OpenAPILifecycle struct{}
func (*OpenAPILifecycle) Disable ¶
func (o *OpenAPILifecycle) Disable(ctx plugins.BaseContext) error
func (*OpenAPILifecycle) Enable ¶
func (o *OpenAPILifecycle) Enable(ctx plugins.EnableContext) error
func (*OpenAPILifecycle) Install ¶
func (o *OpenAPILifecycle) Install(ctx plugins.InstallContext) error
func (*OpenAPILifecycle) Start ¶
func (o *OpenAPILifecycle) Start(ctx plugins.BaseContext) error
func (*OpenAPILifecycle) StartCron ¶
func (o *OpenAPILifecycle) StartCron(ctx plugins.BaseContext, spec string) error
func (*OpenAPILifecycle) Stop ¶
func (o *OpenAPILifecycle) Stop(ctx plugins.BaseContext) error
func (*OpenAPILifecycle) Uninstall ¶
func (o *OpenAPILifecycle) Uninstall(ctx plugins.UninstallContext) error
func (*OpenAPILifecycle) Upgrade ¶
func (o *OpenAPILifecycle) Upgrade(ctx plugins.UpgradeContext) error
Click to show internal directories.
Click to hide internal directories.