Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SupportedPlugins = make(map[string]NewFunc)
)
Functions ¶
func RegisterPlugin ¶
Types ¶
type Helloworld ¶
type Helloworld struct {
// contains filtered or unexported fields
}
func (*Helloworld) Handler ¶
func (p *Helloworld) Handler() fasthttp.RequestHandler
func (*Helloworld) Init ¶
func (p *Helloworld) Init(c *Config) (err error)
func (*Helloworld) Process ¶
func (p *Helloworld) Process(h fasthttp.RequestHandler) fasthttp.RequestHandler
func (*Helloworld) UnInit ¶
func (p *Helloworld) UnInit()
type Plugin ¶
type Plugin interface { Init(c *Config) error UnInit() Process(fasthttp.RequestHandler) fasthttp.RequestHandler Handler() fasthttp.RequestHandler }
type Recover ¶
func (*Recover) Handler ¶
func (p *Recover) Handler() fasthttp.RequestHandler
func (*Recover) Process ¶
func (p *Recover) Process(h fasthttp.RequestHandler) fasthttp.RequestHandler
Click to show internal directories.
Click to hide internal directories.