Versions in this module Expand all Collapse all v1 v1.0.0 Oct 18, 2016 Changes in this version + var AppConfig configuration + var Error *log.Logger + var Info *log.Logger + var Trace *log.Logger + var Warning *log.Logger + func Authorize(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func DisplayAppError(w http.ResponseWriter, handlerError error, message string, code int) + func GenerateJWT(name, role string) (string, error) + func GetSession() *mgo.Session + func TokenFromAuthHeader(r *http.Request) (string, error) + type AppClaims struct + Role string + UserName string + type Level int + const ERROR + const INFO + const TRACE + const UNSPECIFIED + const WARNING