# Functions
BasicAuthentication is a middleware that authenticates via basic auth, if enabled allowed is a list of user:bcrypt(passwd) strings generated by `htpasswd -nbB user passwd`.
ContentTypeJSON sets Content-Type (HTTP header) to `application/json`.
DevCORS allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.
NewStructuredLogger creates a middleware with logrus logger.
ServeFile handles requests for a specific file..
SinglePageApplication renders and serves the index.html.
# Structs
StructuredLogger is a simple, but powerful implementation of a custom structured logger backed on logrus.