plugin

package
v0.0.0-...-d2cbebf Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader handles the loading and managing of server plugins.

func NewPluginLoader

func NewPluginLoader() Loader

NewPluginLoader initializes a new PluginManager with no loaded plugins.

func (*Loader) FetchPlugins

func (loader *Loader) FetchPlugins()

FetchPlugins reads the ./plugins folder and looks for valid shared object files.

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin is a wrapper for the built-in Go plugin, providing quick access to plugin methods.

func NewPlugin

func NewPlugin(internal *plugin.Plugin) Plugin

NewPlugin creates a new plugin and returns it.

func (*Plugin) GetPluginInfo

func (plugin *Plugin) GetPluginInfo() *api.PluginInfo

GetPluginInfo returns the info of this plugin.

Jump to

Keyboard shortcuts

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