Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyAuth ¶
func APIKeyAuth(config APIKeyConfig) echo.MiddlewareFunc
Types ¶
type APIKeyCache ¶
type APIKeyCache struct {
// contains filtered or unexported fields
}
func NewAPIKeyCache ¶
func NewAPIKeyCache(userStor stor.UserStor) *APIKeyCache
func (*APIKeyCache) DeleteUserByAPIKey ¶
func (c *APIKeyCache) DeleteUserByAPIKey(apikey string)
func (*APIKeyCache) GetUserByAPIKey ¶
func (c *APIKeyCache) GetUserByAPIKey(apikey string) (*mcmodel.User, error)
type APIKeyConfig ¶
type APIKeyConfig struct {
Skipper middleware.Skipper
Keyname string
GetUserByAPIKey GetUserByAPIKeyFN
}
Click to show internal directories.
Click to hide internal directories.