mapping

package
Version: v0.0.0-...-d45abc6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescriptorGrpcWebPrefix

func DescriptorGrpcWebPrefix(desc protoreflect.Descriptor) string

DescriptorGrpcWebPrefix returns the prefix for the descriptor. This is required for nested types.

func DescriptorPackage

func DescriptorPackage(m protoreflect.Descriptor, pkg string) string

DescriptorPackage returns the package of the given descriptor. E.g. platform.v1.query.MatchedStringValue returns platform.v1.query

func DescriptorPrefix

func DescriptorPrefix(desc protoreflect.Descriptor) string

DescriptorPrefix returns the prefix for the descriptor. This is required for nested types.

func FieldDescriptorType

func FieldDescriptorType(field protoreflect.FieldDescriptor, pkg string, withCardinality bool) string

func FieldDescriptorTypePlain

func FieldDescriptorTypePlain(field protoreflect.FieldDescriptor, pkg string) string

func FieldType

func FieldType(field *protogen.Field, pkg string) string

func FieldTypeDescriptorPackage

func FieldTypeDescriptorPackage(field protoreflect.FieldDescriptor, pkg string) string

func FieldTypeImportReference

func FieldTypeImportReference(currentPkg string, f protoreflect.FieldDescriptor, destPkg string) string

func FieldTypeNoCardinality

func FieldTypeNoCardinality(field *protogen.Field, pkg string) string

func FieldTypePlain

func FieldTypePlain(field *protogen.Field, pkg string) string

func MapKindToString

func MapKindToString(k protoreflect.Kind) string

func PkgToImportPkg

func PkgToImportPkg(pkg string) string

func ProtoToSimpleJS

func ProtoToSimpleJS(path string, withExt bool, additionalSuffix string) string

func RelativePathBetweenPaths

func RelativePathBetweenPaths(from string, to string) string

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL