plugins

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerPlugin

func HandlerPlugin(w http.ResponseWriter, r *http.Request)

HandlerPlugin responsible for processing the `.so` function via http protocol

func MiddlewarePlugin added in v1.3.0

func MiddlewarePlugin() negroni.Handler

MiddlewarePlugin responsible for processing the `.so` middleware pattern * example .toml config: [[pluginmiddlewarelist]] file = "hello_midlleware.so" func = "Hello"

Types

type LoadedPlugin added in v1.1.0

type LoadedPlugin struct {
	Loaded bool
	Plugin *plugin.Plugin
}

LoadedPlugin structure for controlling the loaded plugin

type PluginFuncReturn added in v1.1.6

type PluginFuncReturn struct {
	ReturnJson string
	StatusCode int
}

PluginFuncReturn structure for holding return value and status of plugin function.

Jump to

Keyboard shortcuts

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