forked from thrasher-corp/gocryptotrader
-
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.
Switch protobuf generation to buf cli tool
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
- Loading branch information
Showing
7 changed files
with
301 additions
and
288 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
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: v1beta1 | ||
plugins: | ||
- name: go | ||
out: ./ | ||
opt: | ||
- paths=source_relative | ||
- name: go-grpc | ||
out: ./ | ||
opt: | ||
- paths=source_relative | ||
- name: grpc-gateway | ||
out: ./ | ||
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,17 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
deps: | ||
- remote: buf.build | ||
owner: beta | ||
repository: googleapis | ||
branch: main | ||
commit: 1c473ad9220a49bca9320f4cc690eba5 | ||
digest: b1-unlhrcI3tnJd0JEGuOb692LZ_tY_gCGq6mK1bgCn1Pg= | ||
create_time: 2021-06-23T20:16:47.788079Z | ||
- remote: buf.build | ||
owner: grpc-ecosystem | ||
repository: grpc-gateway | ||
branch: main | ||
commit: d19475fa22444a289c46af009acce62c | ||
digest: b1-_zhDPyr_Ctc1QRAKuad6_0xvoyPd6QaB22ldm9gzS0Q= | ||
create_time: 2021-04-26T15:19:26.742789Z |
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,5 @@ | ||
version: v1beta1 | ||
name: buf.build/gocryptotrader/grpc | ||
deps: | ||
- buf.build/beta/googleapis | ||
- buf.build/grpc-ecosystem/grpc-gateway |
Large diffs are not rendered by default.
Oops, something went wrong.
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