Deprecated: Use the "google.golang.org/protobuf" module instead.

package gengogrpc

import "github.com/golang/protobuf/internal/gengogrpc"

Package gengogrpc contains the gRPC code generator.

Index

Functions

func GenerateFile

func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile

GenerateFile generates a _grpc.pb.go file containing gRPC service definitions.

func GenerateFileContent

func GenerateFileContent(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile)

GenerateFileContent generates the gRPC service definitions, excluding the package statement.

Source Files

grpc.go

Version
v1.5.3
Published
Sep 16, 2021
Platform
linux/amd64
Imports
5 packages
Last checked
3 hours ago

Tools for package owners.