compat

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 4

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
}

Jump to

Keyboard shortcuts

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