* log: change log format to JSON payload for better log in Stackdriver
change the log format in Go written service from text payload to
JSON payload using 3rd party logging library (logrus).
https://cloud.google.com/logging/docs/structured-logging
|
||
---|---|---|
.. | ||
genproto | ||
.dockerignore | ||
Dockerfile | ||
genproto.sh | ||
Gopkg.lock | ||
Gopkg.toml | ||
main.go | ||
quote.go | ||
README.md | ||
shippingservice_test.go | ||
tracker.go |
Shipping Service
The Shipping service provides price quote, tracking IDs, and the impression of order fulfillment & shipping processes.
Local
Run the following command to restore dependencies to vendor/
directory:
dep ensure --vendor-only
Build
From repository root, run:
docker build --file src/shippingservice/Dockerfile .
Test
go test .