plugin

package
v0.0.0-...-37838c1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnlyFuncName = "Plugin"
)

Variables

View Source
var ManagementPlugin = managementPlugin{/* contains filtered or unexported fields */}

Functions

func LoadPlugin

func LoadPlugin(path string) error

LoadPlugin 加载插件 传入path

Types

type Plugin

type Plugin interface {
	// Register 注册路由
	Register(group *gin.RouterGroup)

	// RouterPath 用户返回注册路由
	RouterPath() string
}

Plugin 插件模式接口化

Jump to

Keyboard shortcuts

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