converter

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

Convert is the primary entrypoint for the protoc plugin. It takes a *pluginpb.CodeGeneratorRequest and returns a *pluginpb.CodeGeneratorResponse.

func ConvertFrom

func ConvertFrom(rd io.Reader) (*pluginpb.CodeGeneratorResponse, error)

func ConvertV1

func ConvertV1(gen *protogen.Plugin, cfg options.Config) error

Types

type State

type State struct {
	Opts        options.Options
	CurrentFile protoreflect.FileDescriptor
	Messages    map[protoreflect.MessageDescriptor]struct{}
	Enums       map[protoreflect.EnumDescriptor]struct{}
}

func NewState

func NewState(opts options.Options) *State

func (*State) CollectEnum

func (st *State) CollectEnum(tt protoreflect.EnumDescriptor)

func (*State) CollectField

func (st *State) CollectField(tt protoreflect.FieldDescriptor)

func (*State) CollectFile

func (st *State) CollectFile(tt protoreflect.FileDescriptor)

func (*State) CollectMessage

func (st *State) CollectMessage(tt protoreflect.MessageDescriptor)

func (*State) SortedEnums

func (st *State) SortedEnums() []protoreflect.EnumDescriptor

func (*State) SortedMessages

func (st *State) SortedMessages() []protoreflect.MessageDescriptor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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