goxplugin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package goxplugin is for registering plugins to be executed by the protoc-gen-gox program. The protoc-gen-gox program will try to first load programs as a Go plugin. If it succeeds, any plugins that are registered (via the Register function in this package) will be run. If loading the program as a Go plugin fails (e.g. it is a normal executable, not a plugin), it will be executed as a normal protoc plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll() map[string]plugins.Plugin

GetAll gets a map of all registered plugins, keyed by name.

func Register

func Register(name string, plugin plugins.Plugin)

Register registers a plugin with the given name. Programs compiled as a Go plugin should call this method in an init() function so that, when loaded, their protoc plugin logic can be included in a protoc invocation of the protoc-gen-gox plugin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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