Skip to content

Commit

Permalink
update protoc-gen-micro
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jan 20, 2021
1 parent ad94eeb commit 60010e8
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 176 deletions.
4 changes: 2 additions & 2 deletions cmd/protoc-gen-micro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions cmd/protoc-gen-micro/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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
)
Loading

0 comments on commit 60010e8

Please sign in to comment.