plugin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePostReq

func HandlePostReq(plugins []*settings.PluginSettings, w http.ResponseWriter, r *http.Request, route *settings.RouteSettings) error

HandlePostReq handles all post request plugins that are configured

func HandlePreReq

func HandlePreReq(plugins []*settings.PluginSettings, w http.ResponseWriter, r *http.Request, route *settings.RouteSettings) error

HandlePreReq handles all pre request plugins that are configured

func Load

func Load(plugins []*settings.PluginSettings)

Load the plugin

Types

type PostRequest

type PostRequest interface {
	PostRequest(http.ResponseWriter, *http.Request, *settings.RouteSettings) error
}

PostRequest wraps the PostRequest func

type PostRequestFunc

type PostRequestFunc func(http.ResponseWriter, *http.Request, *settings.RouteSettings) error

PostRequestFunc is the post request function to be called

type PreRequest

type PreRequest interface {
	PreRequest(http.ResponseWriter, *http.Request, *settings.RouteSettings) error
}

PreRequest wraps the PreRequest func

type PreRequestFunc

type PreRequestFunc func(http.ResponseWriter, *http.Request, *settings.RouteSettings) error

PreRequestFunc is the pre request function to be called

type Setup

type Setup interface {
	Setup(interface{})
}

Setup wraps the Setup func

type SetupFunc

type SetupFunc func(interface{})

SetupFunc is the setup function to be called

Jump to

Keyboard shortcuts

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