Versions in this module Expand all Collapse all v1 v1.0.0 Sep 8, 2020 Changes in this version + const ERROR_AUTH_CHECK_TOKEN_FAIL + const ERROR_AUTH_CHECK_TOKEN_TIMEOUT + const INVALID_PARAMS + const ISSUER + const SUCCESS + func AccessLogger(next http.Handler) http.Handler + func GenerateToken(username, password string) (string, error) + func JWT(next http.Handler) http.Handler + func SafeHandler(next http.Handler) http.Handler + type Authentication struct + func NewAuthentication() *Authentication + func (amw *Authentication) Middleware(next http.Handler) http.Handler + func (amw *Authentication) Populate() + type Claims struct + Password string + Username string + func ParseToken(token string) (*Claims, error) + type Log struct + Logger *logging.Logger + var Logger *Log + func NewLogger() *Log + func (l *Log) Init() *Log + type Session struct + func NewSession(cookieName string) *Session + func (s *Session) Middleware(next http.Handler) http.Handler + func (s *Session) Populate() + func (s *Session) SetCookie(w http.ResponseWriter, r *http.Request)