api_key

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocationHeader  = "header"
	LocationQueries = "query"
)

Variables

This section is empty.

Functions

func New

func New(location string, name string, key string) middlewares.Middleware

func NewStorage added in v1.0.5

func NewStorage(location string, name string, validator ValidateApiKey) middlewares.Middleware

Types

type ValidateApiKey added in v1.0.5

type ValidateApiKey func(apiKey string) bool

Jump to

Keyboard shortcuts

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