protobuf

package
v0.0.0-...-5428336 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func GetGoOutputBaseName(f *protoc.File, importMappings map[string]string) string

func GetImportMappings

func GetImportMappings(options []string) (map[string]string, []string)

func ResolvePluginOptionsTransitive

func ResolvePluginOptionsTransitive(cfg *protoc.PluginConfiguration, r *rule.Rule, from label.Label) []string

func ResolveTransitiveImportMappings

func ResolveTransitiveImportMappings(r *rule.Rule, from label.Label) map[string]string

Types

type ProtocGenGoPlugin

type ProtocGenGoPlugin struct{}

ProtocGenGoPlugin implements Plugin for the the gogo_* family of plugins.

func (*ProtocGenGoPlugin) Configure

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

Jump to

Keyboard shortcuts

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