# Functions
GetJSONContent returns the JSON content of a request.
InitLog initializes the logrus logger.
NewStatistics creates a new statistics structure and launches its worker routine.
NotFoundHandler return a JSON implementation of the not found handler.
ParamAsString returns an URL parameter /{name} as a string.
SendJSONError sends error with a custom message and error code.
SendJSONNotFound produces a http.StatusNotFound response with the following JSON, '{"Error":"Resource not found"}'.
SendJSONOk outputs a JSON with http.StatusOK code.
SendJSONWithHTTPCode outputs JSON with an HTTP code.
TimeTrack is used to log execution times for functions.
# Constants
LogStashFormatter is constant used to format logs as logstash format.
ResponseHeaderContentTypeJSONUTF8 is the key used for UTF8 JSON response.
ResponseHeaderContentTypeKey is the key used for response content type.
TextFormatter is constant used to format logs as simple text format.
# Structs
Statistics is the worker to persist the request statistics.