mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Add comment to middleware
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
This commit is contained in:
parent
4f9c61b5d2
commit
fbc0ebdf4a
@ -2,6 +2,8 @@ package middleware
|
|||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
||||||
|
// AuthInjector is an interface for injecting authentication information into a request
|
||||||
|
// which will be proxied or made to a remote/upstream service.
|
||||||
type AuthInjector interface {
|
type AuthInjector interface {
|
||||||
Inject(r *http.Request)
|
Inject(r *http.Request)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user