protoc-gen-go-netrpc

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 6 Imported by: 0

README

protoc-gen-go-netrpc

protoc's go-grpc plugin

Last version install
go get github.com/feiquan123/protoc-gen-go-netrpc
go install $GOPATH/src/github.com/feiquan123/protoc-gen-go-netrpc

Prev version install

go get github.com/feiquan123/protoc-gen-go-netrpc
go install -tags=prev $GOPATH/src/github.com/feiquan123/protoc-gen-go-netrpc

Protoc gen go file

proto file hello.proto

syntax = "proto3";

package api;

option go_package = "github.com/feiquan123/protoc-gen-go-netrpc/example/api";

message String {
    string value = 1;
}


service HelloService {
	rpc Hello(String) returns (String);
}

generate hello.pb.go

protoc --go-netrpc_out=plugins=netrpc:$GOPATH/src hello.proto

Example

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example
api

Jump to

Keyboard shortcuts

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