Skip to content

Commit

Permalink
Merge pull request #23 from nametake/refactor-v2-protobuf
Browse files Browse the repository at this point in the history
Refactor with Protobuf v2 API
  • Loading branch information
nametake authored Sep 13, 2020
2 parents 69e743c + 271381c commit e0b4c4e
Show file tree
Hide file tree
Showing 28 changed files with 910 additions and 3,027 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
### project

*.pb.go
15 changes: 2 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,8 @@ test_examples:
run_examples:
@go run _examples/main.go _examples/greeter.pb.go _examples/greeter.http.go

update_libs:
@go get -u github.com/golang/protobuf google.golang.org/grpc
@go mod tidy

curl_google_api:
@curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto > _examples/google/api/annotations.proto
@curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto > _examples/google/api/annotations.proto
@curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto > _examples/google/api/http.proto
@curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto > testdata/google/api/annotations.proto
@curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto > testdata/google/api/annotations.proto
@curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto > testdata/google/api/http.proto

gen_test_grpc_go_files:
@protoc --go_out=plugins=grpc:./testdata/ -I testdata ./testdata/auth/*.proto
@protoc --go_out=plugins=grpc:./testdata/ -I testdata ./testdata/hellostreamingworld/*.proto
@protoc --go_out=plugins=grpc:./testdata/ -I testdata ./testdata/helloworld/*.proto
@protoc --go_out=plugins=grpc:./testdata/ -I testdata ./testdata/httprule/*.proto
@protoc --go_out=plugins=grpc:./testdata/ -I testdata ./testdata/routeguide/*.proto
2 changes: 2 additions & 0 deletions _examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pb.go
*.http.go
Loading

0 comments on commit e0b4c4e

Please sign in to comment.