Documentation
¶
Overview ¶
Import this package to enable gogoproto compatibility features.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFileDescriptor ¶
func DecodeFileDescriptor(element string, fdb []byte) (*dpb.FileDescriptorProto, error)
DecodeFileDescriptor decodes the bytes of a registered file descriptor. Registered file descriptors are first "proto encoded" (e.g. binary format for the descriptor protos) and then gzipped. So this function gunzips and then unmarshals into a descriptor proto.
func LoadGogoFileDescriptor ¶
func LoadGogoFileDescriptor(filename string, opts ...CompatLoadOption)
Types ¶
type CompatLoadOption ¶ added in v1.0.10
type CompatLoadOption func(*CompatLoadOptions)
func WithRename ¶ added in v1.0.10
func WithRename(importPath string) CompatLoadOption
type CompatLoadOptions ¶ added in v1.0.10
type CompatLoadOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.