plugins

package module
v0.0.0-...-d88aa10 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: GPL-3.0 Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginServer

type PluginServer struct {
	Config *conf.Config

	LoginMiddleware func(ctx *gin.Context)

	DatabaseInstance func() *gorm.DB
}

type Plugins

type Plugins interface {
	InitPlugins(server *PluginServer) error
	InitDatabase() error
	InitRouter(router *gin.RouterGroup) error
	GetPluginName() string
	GetPluginVersion() string
}

Jump to

Keyboard shortcuts

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