Documentation ¶
Index ¶
- Variables
- type Plugin
- func (Plugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
- func (p *Plugin) Handler() http.Handler
- func (p *Plugin) HandlerPrefix() string
- func (p *Plugin) Running() bool
- func (p *Plugin) Server(*plugin.MuxBroker) (interface{}, error)
- func (p *Plugin) ServicePort() int
- func (p *Plugin) Start() error
- func (p *Plugin) Stop() error
- type RPCPlugin
- type RPCServer
- type StandaloneService
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "BASIC_PLUGIN",
MagicCookieValue: "hello",
}
Handshake is a common handshake that is shared by plugin and host.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { Config pluginutils.PluginConfig ClientConfig *plugin.ClientConfig Impl StandaloneService // contains filtered or unexported fields }
func NewPlugin ¶
func NewPlugin(config pluginutils.PluginConfig) *Plugin
func (*Plugin) HandlerPrefix ¶
func (*Plugin) ServicePort ¶
type RPCPlugin ¶
type RPCPlugin struct {
// contains filtered or unexported fields
}
RPCPlugin This section concerns the engine
type RPCServer ¶
type RPCServer struct { // This is the real implementation Impl StandaloneService }
RPCServer This section concerns the plugin
type StandaloneService ¶
StandaloneService A Standalone plugin will wait until the engine sends a Run The plugin timeouts after a given time and shutdown's afterward
Click to show internal directories.
Click to hide internal directories.