From fbc0ebdf4a52b2cd7c23555cf47925b1918b25fb Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 11 Jan 2023 13:10:46 +0000 Subject: [PATCH] Add comment to middleware Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- gateway/pkg/middleware/serviceauthinjector.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gateway/pkg/middleware/serviceauthinjector.go b/gateway/pkg/middleware/serviceauthinjector.go index 7f9b95b1..7448b4cf 100644 --- a/gateway/pkg/middleware/serviceauthinjector.go +++ b/gateway/pkg/middleware/serviceauthinjector.go @@ -2,6 +2,8 @@ package middleware 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 { Inject(r *http.Request) }