Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFileDesc ¶
func ParseFileDesc(fd protoreflect.FileDescriptor, result *ParseResult)
func SortByDependencies ¶
func SortByDependencies(fdSets []*descriptorpb.FileDescriptorSet) []*descriptorpb.FileDescriptorProto
Sorts filedescriptors by their dependencies so that they are in correct order for further processing.
Types ¶
type ParseResult ¶
type ParseResult struct { FileRegistry *protoregistry.Files TypeResolver *protoregistry.Types Routes []*router.Route Errors []error }
func ParseFileDescSets ¶
func ParseFileDescSets(fdSets []*descriptorpb.FileDescriptorSet) ParseResult
func (*ParseResult) AddError ¶
func (r *ParseResult) AddError(err error)
func (*ParseResult) AddRoute ¶
func (r *ParseResult) AddRoute(route *router.Route)
func (*ParseResult) ErrorsString ¶
func (r *ParseResult) ErrorsString() string
func (*ParseResult) Ok ¶
func (r *ParseResult) Ok() bool
Click to show internal directories.
Click to hide internal directories.