Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 954 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 954 Bytes

gRPC Trigger, Activity, and Examples

This repo contains gRPC trigger, activity and examples. It is intended to work with the microgateway.

Development

Testing

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 -testcache

To skip the integration tests use the -short flag:

go test -p 1 -short ./...

gRPC utility

The gRPC utility generates the files needed by the trigger and activity from a proto file.

Install

Run the following in the root of the repo:

go install

Example

Generates the needed files from petstore.proto and places them in src as the main package:

grpc -input petstore.proto -output src/ -package main