mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
app/vmalert/utils: add missing docs to WithHeaders func added at 70a822f3a0
This commit is contained in:
parent
d0abdc2b5b
commit
b49fc2f9f3
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
func WithHeaders(headers string) AuthConfigOptions {
|
||||||
return func(config *promauth.HTTPClientConfig) {
|
return func(config *promauth.HTTPClientConfig) {
|
||||||
if headers != "" {
|
if headers != "" {
|
||||||
|
|
Loading…
Reference in a new issue