Documentation ¶
Index ¶
- func Find(candidates []*descriptorpb.FileDescriptorProto, protoName string) (*descriptorpb.FileDescriptorProto, *descriptorpb.DescriptorProto, error)
- func GoPackage(f *descriptorpb.FileDescriptorProto) (string, string, error)
- func GoType(candidates []*descriptorpb.FileDescriptorProto, protoName string) (string, string, error)
- func MethodComments(f *descriptorpb.FileDescriptorProto, s *descriptorpb.ServiceDescriptorProto, ...) []string
- func ServiceComments(f *descriptorpb.FileDescriptorProto, s *descriptorpb.ServiceDescriptorProto) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find( candidates []*descriptorpb.FileDescriptorProto, protoName string, ) (*descriptorpb.FileDescriptorProto, *descriptorpb.DescriptorProto, error)
Find returns the descriptor for the given protocol buffers type.
func GoPackage ¶
func GoPackage(f *descriptorpb.FileDescriptorProto) (string, string, error)
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 ¶
func MethodComments( f *descriptorpb.FileDescriptorProto, s *descriptorpb.ServiceDescriptorProto, m *descriptorpb.MethodDescriptorProto, ) []string
MethodComments returns the comments on an RPC method definition.
func ServiceComments ¶
func ServiceComments( f *descriptorpb.FileDescriptorProto, s *descriptorpb.ServiceDescriptorProto, ) []string
ServiceComments returns the comments on an RPC method definition.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.