Categorygithub.com/lushdigital/microservice-core-golang
modulepackage
3.5.0+incompatible
Repository: https://github.com/lushdigital/microservice-core-golang.git
Documentation: pkg.go.dev

# README

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

# Packages

No description provided by the author
No description provided by the author
Package pagination defines a paginator able to return formatted responses enabling the API consumer to retrieve data in defined chunks.
No description provided by the author

# Functions

GetMicroserviceInfo - Get the information about this microservice.

# Structs

MicroserviceInfo - Represents information about this microservice.
Route defines an HTTP route.