Help us shape the future of Go! Take the 2026 Go Developer Survey

parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	LocalResolver   *protoregistry.Types
	FilesResolver   *protoregistry.Files
	FileDescriptors map[string]*desc.FileDescriptor
}

Parser provides a wrapper around jhump/protoreflect/protoparse that will keep a cache of dpd.FileDescriptor

func NewParserWithDescriptorRegistry

func NewParserWithDescriptorRegistry(registry *utils.DescriptorRegistry) *Parser

func (*Parser) ParseFilesX

func (p *Parser) ParseFilesX(filenames ...string) (results []*desc.FileDescriptor, err error)

func (*Parser) ReadConfig

func (p *Parser) ReadConfig(filename string, msg proto.Message) error

Jump to

Keyboard shortcuts

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