protoc-gen-go-client-mock

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 2 Imported by: 0

README

protoc-gen-go-client-mock

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

Example

Generate mock client (client_mock.go) that bundles gRPC clients generated by proto files in the directory.

Requirements

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