-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca45599
commit e3ae1ac
Showing
10 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
# gen-protobuf generates .pb.go for protobuf files | ||
gen-protobuf: | ||
.PHONY: generate-proto-protoc | ||
generate-proto-protoc: | ||
protoc -I ./api \ | ||
--go_out ./pkg --go_opt paths=source_relative \ | ||
--go-grpc_out ./pkg --go-grpc_opt paths=source_relative \ | ||
--grpc-gateway_out ./pkg --grpc-gateway_opt paths=source_relative \ | ||
./api/protobuf/*.proto ./api/google/api/*.proto ./api/google/type/*.proto | ||
--go-grpc_out ./pkg --go-grpc_opt paths=source_relative \ | ||
--grpc-gateway_out ./pkg --grpc-gateway_opt paths=source_relative \ | ||
./api/protobuf/*.proto ./api/google/api/*.proto ./api/google/type/*.proto | ||
|
||
.PHONY: generate-proto | ||
generate-proto: | ||
buf generate api | ||
|
||
# clean-protobuf removes generated .pb.go files | ||
clean-protobuf: | ||
.PHONY: clean-proto | ||
clean-proto: | ||
rm -rf pkg/protobuf pkg/google | ||
|
||
# run-server starts the grpc server | ||
.PHONY: run-server | ||
run-server: | ||
go run cmd/main.go | ||
|
||
# build-cli builds the cli app | ||
build-cli: | ||
cd cli; go build -o okane; mv okane ./../okane-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: v1 | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: v1 | ||
plugins: | ||
- plugin: go | ||
out: pkg | ||
opt: | ||
- paths=source_relative | ||
- plugin: go-grpc | ||
out: pkg | ||
opt: | ||
- paths=source_relative | ||
- plugin: grpc-gateway | ||
out: pkg | ||
opt: | ||
- paths=source_relative | ||
- generate_unbound_methods=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: v1 | ||
directories: | ||
- api | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.