Documentation ¶
Overview ¶
Package middleware contains HTTP middleware functions used by HTTP servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKey ¶
func APIKey(key string) mux.MiddlewareFunc
APIKey returns a mux.MiddlewareFunc implementation that will check the basic authentication credentials for a username matching the provided key. It will return a 401 response if there are no basic authentication credentials or if the username does not match the api key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.