提交 60010e82 编写于 作者: A Asim Aslam

update protoc-gen-micro

上级 ad94eeb6
......@@ -5,7 +5,7 @@ This is protobuf code generation for go-micro. We use protoc-gen-micro to reduce
## Install
```
go get github.com/micro/go-micro/cmd/protoc-gen-micro/v2
go get github.com/asim/go-micro/cmd/protoc-gen-micro/v3
```
Also required:
......@@ -112,7 +112,7 @@ message Response {
}
```
The proto generates a `RegisterGreeterHandler` function with a [api.Endpoint](https://godoc.org/github.com/micro/go-micro/api#Endpoint).
The proto generates a `RegisterGreeterHandler` function with a [api.Endpoint](https://godoc.org/github.com/asim/go-micro/v3/api#Endpoint).
```diff
func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts ...server.HandlerOption) error {
......
module github.com/micro/go-micro/cmd/protoc-gen-micro/v2
module github.com/asim/go-micro/cmd/protoc-gen-micro/v3
go 1.13
require (
github.com/golang/protobuf v1.3.5
github.com/asim/go-micro/v3 v2.4.1-0.20200414211455-9a5b8ff50d31
github.com/asim/go-micro/v3 v3.0.0-20210120135431-d94936f6c97c
github.com/golang/protobuf v1.4.2
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1
)
此差异已折叠。
......@@ -53,8 +53,8 @@ import (
"os"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/cmd/protoc-gen-micro/v2/generator"
_ "github.com/micro/go-micro/cmd/protoc-gen-micro/v2/plugin/micro"
"github.com/asim/go-micro/cmd/protoc-gen-micro/v3/generator"
_ "github.com/asim/go-micro/cmd/protoc-gen-micro/v3/plugin/micro"
)
func main() {
......
......@@ -8,7 +8,7 @@ import (
"github.com/golang/protobuf/proto"
pb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/micro/go-micro/cmd/protoc-gen-micro/v2/generator"
"github.com/asim/go-micro/cmd/protoc-gen-micro/v3/generator"
options "google.golang.org/genproto/googleapis/api/annotations"
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册