middleware

package
v0.1.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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