middleware

package
v0.0.0-...-ef9407b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL