DEPRECATED: Please use the new LUSHDigital/core library
A set of core functionality and convenience structs for a Golang microservice
This package is intended to provide a quick and easy bootstrap of functionality that a micro service is expected to provide. This includes an information route that could be used by a service registry, it also includes a health check route to verify your microservice is working.
The package also contains some convenience classes to help develop microservices.
- Route struct for use with HTTP routing
- Response struct to provide a standardised response format for endpoints
- JSON response formatter
- Info struct to provide meta data for your service
- Helper function to retrieve and ensure environment variables.
Install the package as normal:
$ go get -u github.com/LUSHDigital/microservice-core-golang