plugin

package
v0.0.0-...-36277ca Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPlugin

func RegisterPlugin(d RenderPlugin, priority int)

RegisterPlugin 注册数据处理器

Types

type RenderPlugin

type RenderPlugin interface {
	Handle(dataCollection []*data.AnalyseData) ([]*data.AnalyseData, []ReqHandler)
}

RenderPlugin 渲染数据处理器

func RenderPlugins

func RenderPlugins() []RenderPlugin

type ReqHandler

type ReqHandler struct {
	Pattern string
	Handler func(http.ResponseWriter, *http.Request)
}

ReqHandler 请求处理器

func BuildReqHandler

func BuildReqHandler(pattern string, handler func(http.ResponseWriter, *http.Request)) ReqHandler

BuildReqHandler 创建请求处理器

Jump to

Keyboard shortcuts

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