Versions in this module Expand all Collapse all v0 v0.3.2 Apr 5, 2021 v0.3.1 Apr 5, 2021 Changes in this version + var CSRFDefaultConfig = CSRFConfig + var DefaultCORSConfig = CORSConfig + var DefaultGzipConfig = GzipConfig + var DefaultJwtConfig = JwtConfig + var DefaultLoggerConfig = LoggerConfig + var DefaultRateLimit = RateLimitConfig + var DefaultRequestIDConfig = RequestIDConfig + var DefaultSecureConfig = SecureConfig + func BasicAuth(fn fnValidator) yee.HandlerFunc + func BasicAuthWithConfig(config BasicAuthConfig) yee.HandlerFunc + func CSRF() yee.HandlerFunc + func CSRFWithConfig(config CSRFConfig) yee.HandlerFunc + func Cors() yee.HandlerFunc + func CorsWithConfig(config CORSConfig) yee.HandlerFunc + func Gzip() yee.HandlerFunc + func GzipWithConfig(config GzipConfig) yee.HandlerFunc + func JWTWithConfig(config JwtConfig) yee.HandlerFunc + func Logger() yee.HandlerFunc + func LoggerWithConfig(config LoggerConfig) yee.HandlerFunc + func RateLimit() yee.HandlerFunc + func RateLimitWithConfig(config RateLimitConfig) yee.HandlerFunc + func Recovery() yee.HandlerFunc + func RequestID() yee.HandlerFunc + func RequestIDWithConfig(config RequestIDConfig) yee.HandlerFunc + func Secure() yee.HandlerFunc + func SecureWithConfig(config SecureConfig) yee.HandlerFunc + type BasicAuthConfig struct + Realm string + Validator fnValidator + type CORSConfig struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + ExposeHeaders []string + MaxAge int + Origins []string + type CSRFConfig struct + CookieDomain string + CookieHTTPOnly bool + CookieMaxAge int + CookieName string + CookiePath string + CookieSecure bool + Key string + TokenLength uint8 + TokenLookup string + type GzipConfig struct + Level int + type JWTErrorHandler func(error) error + type JWTSuccessHandler func(yee.Context) + type JwtConfig struct + AuthScheme string + Claims jwt.Claims + ErrorHandler JWTErrorHandler + GetKey string + SigningKey interface{} + SigningMethod string + SuccessHandler JWTSuccessHandler + TokenLookup string + type LoggerConfig struct + Format string + IsLogger bool + Level uint8 + type RateLimitConfig struct + Rate int + Time time.Duration + type RequestIDConfig struct + type SecureConfig struct + CSPReportOnly bool + ContentSecurityPolicy string + ContentTypeNosniff string + HSTSExcludeSubdomains bool + HSTSMaxAge int + HSTSPreloadEnabled bool + ReferrerPolicy string + XFrameOptions string + XSSProtection string