proxy

package
v0.0.0-...-cf46ffc Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseAppFolder = ""

Use custom plugins folder to seek for libraries

View Source
var ForcePluginsReload = false

Use custom plugins loading proxies

View Source
var Logger log.Logger

Message logger interface

View Source
var PluginLibrariesExtension = "so"

Assume this extension name for ;loading the libraries (we hope in future windows will allow plugins)

View Source
var PluginsModulesFolder = "modules"

Plugin Modules sub folder name

View Source
var UsePlugins = false

Use custom plugins loading proxies

Functions

func InitPlugins

func InitPlugins(config model.PluginsConfig, logger log.Logger)

Initializes the plugins proxy system

Types

type Proxy

type Proxy interface {
	// Get all available plugins loaded from shared / static libraries
	GetPlugins() []model.Plugin
	// Get available plugins of a specific plugin type
	GetPluginsByType(pt model.PluginType) ([]model.Plugin, error)
	// Get available plugins of a specific plugin type, filtered by user defined function
	GetFilteredPluginsByType(pt model.PluginType, filter func(model.Plugin) bool) ([]model.Plugin, error)
	// Get available plugins filtered by user defined function
	GetFilteredPlugins(filter func(model.Plugin) bool) ([]model.Plugin, error)
}

Define Behaviors of a Proxy Component

func NewProxy

func NewProxy() Proxy

Creates a New Proxy filled wit all available Built-In and Custom Modules, loaded just on first call

Jump to

Keyboard shortcuts

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