-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* * use AcraTranslatorData instead of fields of services, share all data using only AcraTranslatorData struct * pass build flags in integrations tests * fix overriding test in integrations tests * make getClientID as separate function instead of method of TLSServiceWrapper * add registries for registering callbacks on HTTP/gRPC initialization * initialize and assign tokenizer to TranslatorData explicitly and outside of newServer function * extend makefile with building command of grpc services for tests update golang services according to updates grpc/grpc-go#3669
- Loading branch information
Showing
23 changed files
with
2,864 additions
and
1,243 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 |
---|---|---|
|
@@ -187,9 +187,14 @@ help: | |
## Update protobuf dependencies and regenerate .pb.go from .proto, | ||
## use this target only when it is really needed, not for usual builds | ||
build_protobuf: | ||
go get -u github.com/golang/protobuf/proto github.com/golang/protobuf/protoc-gen-go | ||
go get -u google.golang.org/grpc | ||
protoc --go_out=plugins=grpc:. cmd/acra-translator/grpc_api/*.proto | ||
@go install google.golang.org/protobuf/cmd/[email protected] | ||
@go install google.golang.org/grpc/cmd/[email protected] | ||
@protoc --go_out=`pwd` --go-grpc_out=`pwd` \ | ||
--go_opt=module=github.com/cossacklabs/acra \ | ||
--go-grpc_opt=module=github.com/cossacklabs/acra \ | ||
-Icmd/acra-translator/grpc_api \ | ||
cmd/acra-translator/grpc_api/*.proto | ||
@python3 -m grpc_tools.protoc -Icmd/acra-translator/grpc_api --proto_path=. --python_out=tests/ --grpc_python_out=tests/ cmd/acra-translator/grpc_api/*.proto | ||
|
||
## Build the application in the subdirectory (default) | ||
build: | ||
|
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 was deleted.
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
Oops, something went wrong.