package
0.0.0-20230306131847-26f457599b8d
Repository: https://github.com/xiaoyawei/buf.git
Documentation: pkg.go.dev
# Functions
GenerateWithPluginPath returns a new GenerateOption that uses the given path to the plugin.
GenerateWithProtocPath returns a new GenerateOption that uses the given protoc path to the plugin.
HandlerWithPluginPath returns a new HandlerOption that sets the path to the plugin binary.
HandlerWithProtocPath returns a new HandlerOption that sets the path to the protoc binary.
NewBinaryHandler returns a new Handler that invokes the specific plugin specified by pluginPath.
NewGenerator returns a new Generator.
NewHandler returns a new Handler based on the plugin name and optional path.
# Variables
DefaultVersion represents the default version to use as compiler version for codegen requests.
ProtocProxyPluginNames are the names of the plugins that should be proxied through protoc in the absence of a binary.
# Interfaces
Generator is used to generate code with plugins found on the local filesystem.
# Type aliases
GenerateOption is an option for Generate.
HandlerOption is an option for a new Handler.