Go module to obtain data from the Enterprise Data Hub
This repo follows the folder structure specified in golang-standards/project-layout
- You should have generated a private and public key-pair
- Pass the public key to EDH team
- Put the private key into the ssl folder. This will be used to sign the request and decrypt the response
- EDH team should give you their public cert
- Put this into the ssl folder. This will be used to verify the response
If you would like to contribute to this repo, please open an issue, fork the repo, implement your code and tests and create a PR
This is how tests are run in this repo
# Get gotest (for colored output)
$ go get -u github.com/rakyll/gotest
# Run tests with coverage report
$ cd <path_to_code>
$ gotest -v -coverprofile=cover.out
# Show coverage report in browser
$ go tool cover -html=cover.out