middleware

package
v0.0.0-...-9fc6fd2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIKeyAuth

func APIKeyAuth(config APIKeyConfig) echo.MiddlewareFunc

Types

type APIKeyConfig

type APIKeyConfig struct {
	Skipper   middleware.Skipper
	Keyname   string
	Retriever APIKeyRetriever
}

type APIKeyRetriever

type APIKeyRetriever func(string, echo.Context) (*model.UserSchema, error)

Jump to

Keyboard shortcuts

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