Add comment to middleware

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd) 2023-01-11 13:10:46 +00:00
parent 4f9c61b5d2
commit fbc0ebdf4a

View File

@ -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)
} }