/microservice-core-golang

A set of core functionality and convenience structs for a Golang microservice

Primary LanguageGoApache License 2.0Apache-2.0

DEPRECATED: Please use the new LUSHDigital/core library

Lush Digital - Micro Service Core (Golang) License Go Report Card Build Status

A set of core functionality and convenience structs for a Golang microservice

Description

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.

Package Contents

  • 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.

Installation

Install the package as normal:

$ go get -u github.com/LUSHDigital/microservice-core-golang

Documentation