openapi

package
v0.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (*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 (*OpenAPILifecycle) Uninstall

func (o *OpenAPILifecycle) Uninstall(ctx plugins.UninstallContext) error

func (*OpenAPILifecycle) Upgrade

func (o *OpenAPILifecycle) Upgrade(ctx plugins.UpgradeContext) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL