Versions in this module Expand all Collapse all v1 v1.1.0 Mar 31, 2017 v1.0.0 Mar 8, 2017 Changes in this version + func IsHTTPS(r *rest.Request) bool + func IsProxiedHTTPS(r *rest.Request) bool + func IsUsingSecureConnection(r *rest.Request) bool + type AccessLog struct + func (mw *AccessLog) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc + type AuthMiddleware struct + Authenticator auth.Authenticator + TokenRouteParam string + func (mw *AuthMiddleware) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc + type CheckRequest struct + Disabled bool + IsSecure func(r *rest.Request) bool + type ContextMiddleware struct + func (mw *ContextMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc + type GzipMiddleware struct + func (mw *GzipMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc + type MetricsMiddleware struct + func (mw *MetricsMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc + type NameGenerator interface + Generate func(n int) string + func NewNameGenerator(dictionary string) NameGenerator + type RequireHTTPS struct + func NewRequireHTTPS(checkConfig CheckRequest) *RequireHTTPS + func (secure *RequireHTTPS) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc + type Trace struct + func NewTrace() *Trace + func (mw *Trace) AddHeader(key, value string) + func (mw *Trace) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc