[ENG-731]: Support for Dependencies Injection (#65)

This commit is contained in:
David Terpay
2023-04-18 16:45:31 -04:00
committed by GitHub
parent 1846e2b302
commit a831b25025
14 changed files with 5761 additions and 14 deletions
+17
View File
@@ -0,0 +1,17 @@
# this script is for generating protobuf files for the new google.golang.org/protobuf API
set -eo pipefail
protoc_install_gopulsar() {
go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
}
protoc_install_gopulsar
echo "Cleaning API directory"
(cd api; find ./ -type f \( -iname \*.pulsar.go -o -iname \*.pb.go -o -iname \*.cosmos_orm.go -o -iname \*.pb.gw.go \) -delete; find . -empty -type d -delete; cd ..)
echo "Generating API module"
(cd proto; buf generate --template buf.gen.pulsar.yaml)