MCPcopy Create free account
hub / github.com/discourse/discourse-auth-proxy / initDirector

Function initDirector

internal/httpproxy/backend.go:195–198  ·  view source on GitHub ↗
(target *url.URL)

Source from the content-addressed store, hash-verified

193}
194
195func initDirector(target *url.URL) director {
196 rp := httputil.NewSingleHostReverseProxy(target)
197 return rp.Director
198}
199
200func initDirectorFromSRV(target *url.URL, srv *net.SRV) director {
201 t := *target

Callers 2

NewDNSSRVBackendFunction · 0.85
initDirectorFromSRVFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected