From b49fc2f9f304e6056236a008c27ed1594bf316f1 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 21 Jul 2022 20:39:52 +0300 Subject: [PATCH] app/vmalert/utils: add missing docs to WithHeaders func added at 70a822f3a00abb964c416e77b928377d7c5c919d --- app/vmalert/utils/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vmalert/utils/auth.go b/app/vmalert/utils/auth.go index 77ad69ddbc..35db61fb31 100644 --- a/app/vmalert/utils/auth.go +++ b/app/vmalert/utils/auth.go @@ -59,6 +59,7 @@ func WithOAuth(clientID, clientSecret, clientSecretFile, tokenURL, scopes string } } +// WithHeaders returns AuthConfigOptions and set Headers based on the given params func WithHeaders(headers string) AuthConfigOptions { return func(config *promauth.HTTPClientConfig) { if headers != "" {