Documentation ¶
Index ¶
- func DiffFileDescriptorSetsJSON(one *descriptorpb.FileDescriptorSet, two *descriptorpb.FileDescriptorSet, ...) (string, error)
- func DiffFileDescriptorSetsWire(one *descriptorpb.FileDescriptorSet, two *descriptorpb.FileDescriptorSet, ...) (string, error)
- func GetProtocFileDescriptorSet(ctx context.Context, roots []string, realFilePaths []string, ...) (_ *descriptorpb.FileDescriptorSet, retErr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffFileDescriptorSetsJSON ¶
func DiffFileDescriptorSetsJSON(one *descriptorpb.FileDescriptorSet, two *descriptorpb.FileDescriptorSet, name string) (string, error)
DiffFileDescriptorSetsJSON diffs the two FileDescriptorSets using JSON.
TODO: this does NOT use any resolver, so extensions will be dropped. This needs to be updated.
func DiffFileDescriptorSetsWire ¶
func DiffFileDescriptorSetsWire(one *descriptorpb.FileDescriptorSet, two *descriptorpb.FileDescriptorSet, name string) (string, error)
DiffFileDescriptorSetsWire diffs the two FileDescriptorSets using proto.MarshalWire.
func GetProtocFileDescriptorSet ¶
func GetProtocFileDescriptorSet( ctx context.Context, roots []string, realFilePaths []string, includeImports bool, includeSourceInfo bool, ) (_ *descriptorpb.FileDescriptorSet, retErr error)
GetProtocFileDescriptorSet gets the validated FileDescriptorSet using protoc and the Well-Known Types on the current PATH.
Only use for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.