web

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	capability.IRegistry
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(svc pluginservice.Service) *Handler

func (*Handler) DeleteBinding

func (h *Handler) DeleteBinding(ctx *ginx.Context) (ginx.Result, error)

func (*Handler) GetDefaultDefinition

func (h *Handler) GetDefaultDefinition(ctx *ginx.Context) (ginx.Result, error)

func (*Handler) GetPluginDetail

func (h *Handler) GetPluginDetail(ctx *ginx.Context) (ginx.Result, error)

func (*Handler) GetRuntimeView

func (h *Handler) GetRuntimeView(ctx *ginx.Context) (ginx.Result, error)

func (*Handler) IdentifyRoutes added in v1.11.2

func (h *Handler) IdentifyRoutes(server *gin.Engine)

func (*Handler) ListEnums

func (h *Handler) ListEnums(ctx *ginx.Context) (ginx.Result, error)

func (*Handler) ListPlugins

func (h *Handler) ListPlugins(ctx *ginx.Context) (ginx.Result, error)

func (*Handler) ListResourceActionsBatch

func (h *Handler) ListResourceActionsBatch(ctx *ginx.Context, req ListResourceActionsBatchReq) (ginx.Result, error)

func (*Handler) PrivateRoutes

func (h *Handler) PrivateRoutes(server *gin.Engine)

func (*Handler) ProxyToPlugin

func (h *Handler) ProxyToPlugin(ctx *gin.Context)

ProxyToPlugin 通用插件反向代理网关,自动读取对应插件的 upstream 动态执行 HTTP/WebSocket 代理

func (*Handler) PublicRoutes

func (h *Handler) PublicRoutes(server *gin.Engine)

func (*Handler) ResolveAction

func (h *Handler) ResolveAction(ctx *ginx.Context, req pluginx.ResolveRequest) (ginx.Result, error)

func (*Handler) SaveBindings

func (h *Handler) SaveBindings(ctx *ginx.Context, req SaveBindingsReq) (ginx.Result, error)

func (*Handler) SwitchBindingStatus

func (h *Handler) SwitchBindingStatus(ctx *ginx.Context) (ginx.Result, error)

type ListResourceActionsBatchReq

type ListResourceActionsBatchReq struct {
	ResourceIDs []int64 `json:"resource_ids" binding:"required"`
}

type SaveBindingsReq

type SaveBindingsReq struct {
	PluginID string            `json:"plugin_id" binding:"required"`
	Bindings []pluginx.Binding `json:"bindings" binding:"required"`
}

Jump to

Keyboard shortcuts

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