plugin

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2022 License: MPL-2.0 Imports: 2 Imported by: 65

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL