Documentation
¶
Overview ¶
Package plugin contains the implementations needed to make the built binary act as a plugin.
A plugin is implemented as an gRPC server and the host acts as the client, sending analysis requests to the plugin.
See host2plugin for implementation details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Serve = host2plugin.Serve
Serve is a wrapper of plugin.Serve. This is entrypoint of all plugins.
Functions ¶
This section is empty.
Types ¶
type ServeOpts ¶
type ServeOpts = host2plugin.ServeOpts
ServeOpts is an option for serving a plugin. Each plugin can pass a RuleSet that represents its own functionality.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fromproto contains an implementation to decode a structure generated from *.proto into a real Go structure.
|
Package fromproto contains an implementation to decode a structure generated from *.proto into a real Go structure. |
|
Package host2plugin contains a gRPC server (plugin) and client (host).
|
Package host2plugin contains a gRPC server (plugin) and client (host). |
|
Package interceptor contains gRPC interceptors.
|
Package interceptor contains gRPC interceptors. |
|
Package plugin2host contains a gRPC server (host) and client (plugin).
|
Package plugin2host contains a gRPC server (host) and client (plugin). |
|
Package proto contains generated protocol buffers structures.
|
Package proto contains generated protocol buffers structures. |
|
Package toproto contains an implementation to encode a Go structure into a structure generated from *.proto.
|
Package toproto contains an implementation to encode a Go structure into a structure generated from *.proto. |
Click to show internal directories.
Click to hide internal directories.