Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultApiKeyConfig = ApiKeyConfig{ Skipper: middleware.DefaultSkipper, QueryKeyName: "key", HeaderKeyName: "API-KEY", } )
Functions ¶
This section is empty.
Types ¶
type ApiKey ¶
type ApiKey struct {
Key string
Header bool
Config ApiKeyConfig
}
func NewApiKeyWithConfig ¶
func NewApiKeyWithConfig(config ApiKeyConfig) *ApiKey
func (*ApiKey) Handler ¶
func (a *ApiKey) Handler(next echo.HandlerFunc) echo.HandlerFunc
type ApiKeyConfig ¶
type ApiKeyConfig struct {
Skipper middleware.Skipper
QueryKeyName string
HeaderKeyName string
}
Click to show internal directories.
Click to hide internal directories.