protoc-gen-go-grpc

command module
v0.0.0-...-c829239 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

protoc-gen-go-grpc

This tool generates Go language bindings of services in protobuf definition files for gRPC.

  protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \

Documentation

Overview

protoc-gen-go-grpc is a plugin for the Google protocol buffer compiler to generate Go code. Install it by building this program and making it accessible within your PATH with the name:

protoc-gen-go-grpc

The 'go-grpc' suffix becomes part of the argument for the protocol compiler, such that it can be invoked as:

protoc --go-grpc_out=. path/to/file.proto

This generates Go service definitions for the protocol buffer defined by file.proto. With that input, the output will be written to:

path/to/file_grpc.pb.go

Directories

Path Synopsis
############################################################################# # File: config.go # # Project: config # # Created Date: 2024/11/14 17:25:45 # # Author: realjf # # ----- # # Last Modified: 2024/11/14 17:26:10 # # Modified By: realjf # # ----- # # # #############################################################################
############################################################################# # File: config.go # # Project: config # # Created Date: 2024/11/14 17:25:45 # # Author: realjf # # ----- # # Last Modified: 2024/11/14 17:26:10 # # Modified By: realjf # # ----- # # # #############################################################################
############################################################################# # File: grpc_client.go # # Project: protoc-gen-go-grpc # # Created Date: 2024/11/14 15:45:28 # # Author: realjf # # ----- # # Last Modified: 2024/11/14 17:31:36 # # Modified By: realjf # # ----- # # # #############################################################################
############################################################################# # File: grpc_client.go # # Project: protoc-gen-go-grpc # # Created Date: 2024/11/14 15:45:28 # # Author: realjf # # ----- # # Last Modified: 2024/11/14 17:31:36 # # Modified By: realjf # # ----- # # # #############################################################################

Jump to

Keyboard shortcuts

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