plugin

package
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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusLoaded = iota + 1
	StatusNotCompatible
)

Variables

This section is empty.

Functions

func DownloadPlugin

func DownloadPlugin(name string, status chan string) error

func GetPluginNameList

func GetPluginNameList() []string

func InitDatabases

func InitDatabases()

func InitPlugins

func InitPlugins(loginMiddleware func(ctx *gin.Context))

func InitRouters

func InitRouters(router *gin.RouterGroup)

Types

type DownloadProgress

type DownloadProgress struct {
	Length  int64
	Current int64
	Status  chan string
}

func (*DownloadProgress) Write

func (d *DownloadProgress) Write(p []byte) (int, error)

type Plugin

type Plugin struct {
	PackageName   string `json:"packageName"`
	PluginName    string `json:"pluginName"`
	PluginVersion string `json:"pluginVersion"`
	Status        uint   `json:"status"`
}

func GetPlugins

func GetPlugins() []Plugin

type PluginClient

type PluginClient struct {
	*plugin.Plugin

	plugins.Plugins
	// contains filtered or unexported fields
}

func GetPlugin

func GetPlugin(name string) (PluginClient, error)

Jump to

Keyboard shortcuts

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