plugins

package
v0.0.0-...-9b02830 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PLUGINS_COLLECTION = "plugins"
)

Variables

View Source
var BEFORE_REQUEST_PLUGINS_NAME = "BeforeRequest"

Before request plugins

View Source
var BeforeRequestEntryPluginLookup = "BeforeRequestEntryPlugin"

Lookup for before request plugin

View Source
var PLUGINS_LOCATION = "./custom_plugins"

Plugins location

View Source
var PLUGIN_EXTENSION = ".so"

Go plugin extension

View Source
var SERVICE_NAME = "/plugins"

Functions

func CallBeforeRequestPlugins

func CallBeforeRequestPlugins(c *routing.Context) error

func Configurations

func Configurations() config.GApiPluginsConfig

func ListAll

func ListAll() (map[string][]string, error)

Types

type BeforeRequestEntryPlugin

type BeforeRequestEntryPlugin interface {
	Call(c *routing.Context) error
}

type BeforeRequestPlugin

type BeforeRequestPlugin struct {
	Location string
	Filename string
}

func (*BeforeRequestPlugin) Call

type GeneralPlugin

type GeneralPlugin struct {
	Location string
	Filename string
}

func (*GeneralPlugin) Load

func (p *GeneralPlugin) Load(lookup string) (plugin.Symbol, error)

Jump to

Keyboard shortcuts

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