MCPcopy
hub / github.com/openfaas/faas / ExternalServiceQuery

Struct ExternalServiceQuery

gateway/plugin/external.go:26–33  ·  view source on GitHub ↗

ExternalServiceQuery proxies service queries to external plugin via HTTP

Source from the content-addressed store, hash-verified

24
25// ExternalServiceQuery proxies service queries to external plugin via HTTP
26type ExternalServiceQuery struct {
27 URL url.URL
28 ProxyClient http.Client
29 AuthInjector middleware.AuthInjector
30
31 // IncludeUsage includes usage metrics in the response
32 IncludeUsage bool
33}
34
35// NewExternalServiceQuery proxies service queries to external plugin via HTTP
36func NewExternalServiceQuery(externalURL url.URL, authInjector middleware.AuthInjector) scaling.ServiceQuery {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected