parser

package
v0.2.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 12 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 NewParser

func NewParser(fileRegs ...*protoregistry.Files) *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