Documentation ¶
Overview ¶
Package authentication provides functionality for authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(next http.HandlerFunc, apiKey string) http.HandlerFunc
Middleware works as a wrapper around http.HandlerFunc. It verifies that the caller provided a valid api secret when requesting a authenticated endpoint. This method is expecting the requests to contain a header with the format:
"Authorization: value".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.