Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultBodyLimitConfig is the default Gzip middleware config. DefaultApiVersionConfig = ApiVersionConfig{ Version: "v1", } )
View Source
var DefaultKeyAuth = mw.KeyAuthWithConfig(DefaultKeyAuthConfig)
View Source
var DefaultKeyAuthConfig = mw.KeyAuthConfig{
Validator: defaultKeyValidator,
KeyLookup: "query:api-key",
}
Functions ¶
func ApiVersion ¶
func ApiVersion(version string) echo.MiddlewareFunc
func ApiVersionWithConfig ¶
func ApiVersionWithConfig(config ApiVersionConfig) echo.MiddlewareFunc
Types ¶
type ApiVersionConfig ¶
type ApiVersionConfig struct {
Version string
}
BodyLimitConfig defines the config for BodyLimit middleware.
Click to show internal directories.
Click to hide internal directories.