protoc-gen-go-client

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 2 Imported by: 0

README

protoc-gen-go-client

protoc-gen-go-client is a protoc plugin that generates a client that bundles gRPC Clients for multiple services.

Example

Generate client.go that bundles gRPC clients generated by proto files in the directory.

Requirements

  • protoc-gen-go
  • protoc-gen-go-grpc

Options

Option Type Description
package string Specify package name (ex --go-client_opt=package=xxxx )
same_package bool Make the package the same as the package generated by proto-gen-go (ex --go-client_opt=same_package )
with_close bool Add Close() method for closing *grpc.ClientConn from client

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example module

Jump to

Keyboard shortcuts

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