descriptorutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

Find returns the descriptor for the given protocol buffers type.

func GoPackage

GoPackage parses the "go_package" option in the file and returns the import path and unqualified package name.

func GoType

func GoType(
	candidates []*descriptorpb.FileDescriptorProto,
	protoName string,
) (string, string, error)

GoType returns the package path and type name for the Go type that represents the given protocol buffers type.

func MethodComments

MethodComments returns the comments on an RPC method definition.

func ServiceComments

ServiceComments returns the comments on an RPC method definition.

Types

This section is empty.

Jump to

Keyboard shortcuts

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