This repo contains gRPC trigger, activity and examples. It is intended to work with the microgateway.
To run tests issue the following command in the root of the project:
go test -p 1 ./...The -p 1 is needed to prevent tests from being run in parallel. To re-run the tests first run the following:
go clean -testcacheTo skip the integration tests use the -short flag:
go test -p 1 -short ./...The gRPC utility generates the files needed by the trigger and activity from a proto file.
Run the following in the root of the repo:
go installGenerates the needed files from petstore.proto and places them in src as the main package:
grpc -input petstore.proto -output src/ -package main