Skip to content

Commit

Permalink
feat: add user.proto and boilerplate code for gRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
cukhoaimon committed Feb 5, 2024
1 parent 22f03e3 commit a720823
Show file tree
Hide file tree
Showing 8 changed files with 663 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ dbdocs:
mock:
mockgen -package mockdb -destination db/mock/store.go github.com/cukhoaimon/SimpleBank/db/sqlc Store

.PHONY: postgres createdb dropdb migrate-up migrate-down sqlc test server mock dbdocs
proto:
protoc --proto_path=proto --go_out=pb --go_opt=paths=source_relative \
--go-grpc_out=pb --go-grpc_opt=paths=source_relative \
proto/*.proto

.PHONY: postgres createdb dropdb migrate-up migrate-down sqlc test server mock dbdocs proto
240 changes: 240 additions & 0 deletions pb/rpc_create_user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions pb/service_simple_bank.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a720823

Please sign in to comment.