Versions in this module Expand all Collapse all v4 v4.0.2 Mar 2, 2019 v4.0.1 Mar 2, 2019 Changes in this version + const AlgorithmHS256 + var DefaultBasicAuthConfig = BasicAuthConfig + var DefaultBodyDumpConfig = BodyDumpConfig + var DefaultBodyLimitConfig = BodyLimitConfig + var DefaultCORSConfig = CORSConfig + var DefaultCSRFConfig = CSRFConfig + var DefaultGzipConfig = GzipConfig + var DefaultJWTConfig = JWTConfig + var DefaultKeyAuthConfig = KeyAuthConfig + var DefaultLoggerConfig = LoggerConfig + var DefaultMethodOverrideConfig = MethodOverrideConfig + var DefaultProxyConfig = ProxyConfig + var DefaultRecoverConfig = RecoverConfig + var DefaultRedirectConfig = RedirectConfig + var DefaultRequestIDConfig = RequestIDConfig + var DefaultRewriteConfig = RewriteConfig + var DefaultSecureConfig = SecureConfig + var DefaultStaticConfig = StaticConfig + var DefaultTrailingSlashConfig = TrailingSlashConfig + var ErrJWTMissing = echo.NewHTTPError(http.StatusBadRequest, "missing or malformed jwt") + func AddTrailingSlash() echo.MiddlewareFunc + func AddTrailingSlashWithConfig(config TrailingSlashConfig) echo.MiddlewareFunc + func BasicAuth(fn BasicAuthValidator) echo.MiddlewareFunc + func BasicAuthWithConfig(config BasicAuthConfig) echo.MiddlewareFunc + func BodyDump(handler BodyDumpHandler) echo.MiddlewareFunc + func BodyDumpWithConfig(config BodyDumpConfig) echo.MiddlewareFunc + func BodyLimit(limit string) echo.MiddlewareFunc + func BodyLimitWithConfig(config BodyLimitConfig) echo.MiddlewareFunc + func CORS() echo.MiddlewareFunc + func CORSWithConfig(config CORSConfig) echo.MiddlewareFunc + func CSRF() echo.MiddlewareFunc + func CSRFWithConfig(config CSRFConfig) echo.MiddlewareFunc + func DefaultSkipper(echo.Context) bool + func Gzip() echo.MiddlewareFunc + func GzipWithConfig(config GzipConfig) echo.MiddlewareFunc + func HTTPSNonWWWRedirect() echo.MiddlewareFunc + func HTTPSNonWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc + func HTTPSRedirect() echo.MiddlewareFunc + func HTTPSRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc + func HTTPSWWWRedirect() echo.MiddlewareFunc + func HTTPSWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc + func JWT(key interface{}) echo.MiddlewareFunc + func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc + func KeyAuth(fn KeyAuthValidator) echo.MiddlewareFunc + func KeyAuthWithConfig(config KeyAuthConfig) echo.MiddlewareFunc + func Logger() echo.MiddlewareFunc + func LoggerWithConfig(config LoggerConfig) echo.MiddlewareFunc + func MethodOverride() echo.MiddlewareFunc + func MethodOverrideWithConfig(config MethodOverrideConfig) echo.MiddlewareFunc + func NonWWWRedirect() echo.MiddlewareFunc + func NonWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc + func Proxy(balancer ProxyBalancer) echo.MiddlewareFunc + func ProxyWithConfig(config ProxyConfig) echo.MiddlewareFunc + func Recover() echo.MiddlewareFunc + func RecoverWithConfig(config RecoverConfig) echo.MiddlewareFunc + func RemoveTrailingSlash() echo.MiddlewareFunc + func RemoveTrailingSlashWithConfig(config TrailingSlashConfig) echo.MiddlewareFunc + func RequestID() echo.MiddlewareFunc + func RequestIDWithConfig(config RequestIDConfig) echo.MiddlewareFunc + func Rewrite(rules map[string]string) echo.MiddlewareFunc + func RewriteWithConfig(config RewriteConfig) echo.MiddlewareFunc + func Secure() echo.MiddlewareFunc + func SecureWithConfig(config SecureConfig) echo.MiddlewareFunc + func Static(root string) echo.MiddlewareFunc + func StaticWithConfig(config StaticConfig) echo.MiddlewareFunc + func WWWRedirect() echo.MiddlewareFunc + func WWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc + type BasicAuthConfig struct + Realm string + Skipper Skipper + Validator BasicAuthValidator + type BasicAuthValidator func(string, string, echo.Context) (bool, error) + type BeforeFunc func(echo.Context) + type BodyDumpConfig struct + Handler BodyDumpHandler + Skipper Skipper + type BodyDumpHandler func(echo.Context, []byte, []byte) + type BodyLimitConfig struct + Limit string + Skipper Skipper + type CORSConfig struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + ExposeHeaders []string + MaxAge int + Skipper Skipper + type CSRFConfig struct + ContextKey string + CookieDomain string + CookieHTTPOnly bool + CookieMaxAge int + CookieName string + CookiePath string + CookieSecure bool + Skipper Skipper + TokenLength uint8 + TokenLookup string + type GzipConfig struct + Level int + Skipper Skipper + type JWTConfig struct + AuthScheme string + BeforeFunc BeforeFunc + Claims jwt.Claims + ContextKey string + ErrorHandler JWTErrorHandler + SigningKey interface{} + SigningMethod string + Skipper Skipper + SuccessHandler JWTSuccessHandler + TokenLookup string + type JWTErrorHandler func(error) error + type JWTSuccessHandler func(echo.Context) + type KeyAuthConfig struct + AuthScheme string + KeyLookup string + Skipper Skipper + Validator KeyAuthValidator + type KeyAuthValidator func(string, echo.Context) (bool, error) + type LoggerConfig struct + CustomTimeFormat string + Format string + Output io.Writer + Skipper Skipper + type MethodOverrideConfig struct + Getter MethodOverrideGetter + Skipper Skipper + type MethodOverrideGetter func(echo.Context) string + func MethodFromForm(param string) MethodOverrideGetter + func MethodFromHeader(header string) MethodOverrideGetter + func MethodFromQuery(param string) MethodOverrideGetter + type ProxyBalancer interface + AddTarget func(*ProxyTarget) bool + Next func(echo.Context) *ProxyTarget + RemoveTarget func(string) bool + func NewRandomBalancer(targets []*ProxyTarget) ProxyBalancer + func NewRoundRobinBalancer(targets []*ProxyTarget) ProxyBalancer + type ProxyConfig struct + Balancer ProxyBalancer + ContextKey string + Rewrite map[string]string + Skipper Skipper + Transport http.RoundTripper + type ProxyTarget struct + Meta echo.Map + Name string + URL *url.URL + type RecoverConfig struct + DisablePrintStack bool + DisableStackAll bool + Skipper Skipper + StackSize int + type RedirectConfig struct + Code int + type RequestIDConfig struct + Generator func() string + Skipper Skipper + type RewriteConfig struct + Rules map[string]string + Skipper Skipper + type SecureConfig struct + CSPReportOnly bool + ContentSecurityPolicy string + ContentTypeNosniff string + HSTSExcludeSubdomains bool + HSTSMaxAge int + Skipper Skipper + XFrameOptions string + XSSProtection string + type Skipper func(echo.Context) bool + type StaticConfig struct + Browse bool + HTML5 bool + Index string + Root string + Skipper Skipper + type TrailingSlashConfig struct + RedirectCode int + Skipper Skipper Other modules containing this package github.com/linthan/echo