Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "STATIC_PLUGIN",
MagicCookieValue: "static-website-content",
}
View Source
var PluginMap = map[string]plugin.Plugin{ "handler": &HandlerPlugin{}, }
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
Serve(r PluginQuery, w *PluginReply) error
SetConfig(cfg map[string][]string, ok *bool) error
}
type HandlerRPC ¶
type HandlerRPC struct {
// contains filtered or unexported fields
}
func (*HandlerRPC) Serve ¶
func (g *HandlerRPC) Serve(q PluginQuery) (*PluginReply, error)
type HandlerRPCServer ¶
type HandlerRPCServer struct {
Impl Handler
}
func (*HandlerRPCServer) Serve ¶
func (s *HandlerRPCServer) Serve(r PluginQuery, reply *PluginReply) error
Click to show internal directories.
Click to hide internal directories.