Documentation
¶
Index ¶
- Constants
- func GetGoOutputBaseName(f *protoc.File, importMappings map[string]string) string
- func GetImportMappings(options []string) (map[string]string, []string)
- func ResolvePluginOptionsTransitive(cfg *protoc.PluginConfiguration, r *rule.Rule, from label.Label) []string
- func ResolveTransitiveImportMappings(r *rule.Rule, from label.Label) map[string]string
- type ProtocGenGoPlugin
Constants ¶
View Source
const ProtocGenGoPluginName = "golang:protobuf:protoc-gen-go"
View Source
const TransitiveImportMappingsKey = "_transitive_importmappings"
TransitiveImportMappingsKey stores a map[string]string on the library
Variables ¶
This section is empty.
Functions ¶
func GetGoOutputBaseName ¶
Types ¶
type ProtocGenGoPlugin ¶
type ProtocGenGoPlugin struct{}
ProtocGenGoPlugin implements Plugin for the the gogo_* family of plugins.
func (*ProtocGenGoPlugin) Configure ¶
func (p *ProtocGenGoPlugin) Configure(ctx *protoc.PluginContext) *protoc.PluginConfiguration
Configure implements part of the Plugin interface.
func (*ProtocGenGoPlugin) Name ¶
func (p *ProtocGenGoPlugin) Name() string
Name implements part of the Plugin interface.
func (*ProtocGenGoPlugin) ResolvePluginOptions ¶
func (p *ProtocGenGoPlugin) ResolvePluginOptions(cfg *protoc.PluginConfiguration, r *rule.Rule, from label.Label) []string
Click to show internal directories.
Click to hide internal directories.