Documentation ¶
Overview ¶
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "CORE_PLUGIN",
MagicCookieValue: "RICH",
}
View Source
var PluginMap = map[string]plugin.Plugin{ "core": &ProcessPlugin{}, }
Functions ¶
This section is empty.
Types ¶
type ProcessClient ¶
type ProcessClient struct {
// contains filtered or unexported fields
}
type ProcessPlugin ¶
func (*ProcessPlugin) GRPCClient ¶
func (p *ProcessPlugin) GRPCClient(ctx context.Context, b *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
GRPCClient should return the interface implementation for the plugin you're serving via gRPC. The provided context will be canceled by go-plugin in the event of the plugin process exiting.
func (*ProcessPlugin) GRPCServer ¶
func (p *ProcessPlugin) GRPCServer(b *plugin.GRPCBroker, s *grpc.Server) error
GRPCServer should register this plugin for serving with the given GRPCServer. Unlike Plugin.Server, this is only called once since gRPC plugins serve singletons.
type ProcessServer ¶
type ProcessServer struct {
Impl Processer
}
Click to show internal directories.
Click to hide internal directories.