machinery

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WellKnownTypesFS embed.FS

Functions

func GenerateDescriptor

func GenerateDescriptor(proto *parser.Proto) *descriptorpb.FileDescriptorProto

func ParseProto

func ParseProto(filename string) (*parser.Proto, error)

func ReadWellKnownType

func ReadWellKnownType(importName string) (string, error)

func ResolveKindsFromDependencies

func ResolveKindsFromDependencies(files []*descriptorpb.FileDescriptorProto)

Go through all message types from all protos, and find any message fields which have a typename set but not a type. These will (should) be types imported from other packages where we couldn't tell if they were enum or message types at the time. According to the docs, we should be able to leave the type field empty, but that does not appear to be correct as it casuses proto to think some enums are messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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