# Functions
BoolFromQuery obtains a boolean from a query entry.
ErrorFromResp creates an HTTPError from a given server response.
GetLogger returns logger from HTTP context.
GetServiceHealth gets the response from the given service url.
LogEntrySetField adds new key-value pair to current (request scoped) log entry.
NewLogMiddleware creates a new instance of logging middleware.
ReadJSON reads the request body to a json object.
SetLoggerMiddleware sets logger to context of HTTP requests.
SplitRPCAddr returns host and port and whatever error results from parsing the rpc address interface.
WriteJSON writes a json object on a http.ResponseWriter with the given code, panics on marshaling error.
# Constants
LoggerKey defines logger HTTP context key.
# Structs
DMSGHTTPConf is struct of /dmsghttp endpoint of config bootstrap.
DMSGServersConf is struct of dmsg servers list on /dmsghttp endpoint.
Error is the object returned to the client when there's an error.
HealthCheckResponse is struct of /health endpoint.
HTTPError represents an http error associated with a server response.