legacy

package
v2.0.0-...-d24bc72 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnumDesc

func LoadEnumDesc(t reflect.Type) pref.EnumDescriptor

LoadEnumDesc returns an EnumDescriptor derived from the Go type, which must be an int32 kind and not implement the v2 API already.

This is exported for testing purposes.

func LoadMessageDesc

func LoadMessageDesc(t reflect.Type) pref.MessageDescriptor

LoadMessageDesc returns an MessageDescriptor derived from the Go type, which must be a *struct kind and not implement the v2 API already.

This is exported for testing purposes.

Types

type Export

type Export struct{}

Export is a zero-length named type that exists only to export a set of functions that we do not want to appear in godoc.

func (Export) EnumOf

func (Export) EnumOf(e interface{}) pvalue.LegacyEnum

func (Export) EnumTypeOf

func (Export) EnumTypeOf(e interface{}) pref.EnumType

func (Export) ExtensionDescFromType

func (Export) ExtensionDescFromType(t pref.ExtensionType) *piface.ExtensionDescV1

func (Export) ExtensionTypeFromDesc

func (Export) ExtensionTypeFromDesc(d *piface.ExtensionDescV1) pref.ExtensionType

func (Export) ExtensionTypeOf

func (Export) ExtensionTypeOf(d pref.ExtensionDescriptor, t interface{}) pref.ExtensionType

func (Export) MessageOf

func (Export) MessageOf(m interface{}) pvalue.LegacyMessage

func (Export) MessageTypeOf

func (Export) MessageTypeOf(m interface{}) pref.MessageType

Jump to

Keyboard shortcuts

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