Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "GOWIKI_PLUGIN",
MagicCookieValue: "gowiki",
}
Functions ¶
Types ¶
type GoWikiPlugin ¶
type GoWikiPlugin struct {
// contains filtered or unexported fields
}
func (*GoWikiPlugin) HandleRoute ¶
func (p *GoWikiPlugin) HandleRoute(route string, request HTTPRequest) HTTPResponse
func (*GoWikiPlugin) RegisterRoute ¶
func (p *GoWikiPlugin) RegisterRoute(route string, handler func(HTTPRequest) HTTPResponse)
func (*GoWikiPlugin) Routes ¶
func (p *GoWikiPlugin) Routes() []string
type GoWikiPluginConnector ¶
type GoWikiPluginConnector struct {
Impl IGoWikiPlugin
}
type HTTPRequest ¶
type IGoWikiPlugin ¶
type IGoWikiPlugin interface {
Init()
Name() string
Version() string
Routes() []string
HandleRoute(string, HTTPRequest) HTTPResponse
}
Click to show internal directories.
Click to hide internal directories.