plugins

package
v0.0.0-...-ee7f901 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Run(getContext func() []byte, next func())
	SetConfig(config []byte)
}

func LoadPlugin

func LoadPlugin(path string) Plugin

type PluginHandler

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

func (*PluginHandler) HandleRequest

func (h *PluginHandler) HandleRequest(ctx *handlers.Ctx)

func (*PluginHandler) SetNext

func (h *PluginHandler) SetNext(handler handlers.Handler)

Jump to

Keyboard shortcuts

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