gogocompat

package
v0.0.0-...-c41840e Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gogocompat is a compatibility shim for GoGo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoRegistry

func ProtoRegistry() unstableProtoRegistry

ProtoRegistry returns a Protobuf message registry that falls back to GoGo.

To support types that might differ between Protobuf and GoGo registrations, the special prefix "gogo:" can be used to skip looking up messages in the standard Protobuf registry.

pb = proto.package("google.protobuf")
gogo_pb = proto.package("gogo:google.protobuf")
# pb.Timestamp and gogo_pb.Timestamp are distinct types.

The exact type of the return value is not yet stabilized, but the result is guaranteed to be accepted by the skycfg.WithProtoRegistry() load option.

Types

This section is empty.

Jump to

Keyboard shortcuts

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