MCPcopy
hub / github.com/grafana/dskit / httpTarget

Function httpTarget

server/server_test.go:1094–1096  ·  view source on GitHub ↗
(srv *Server, path string)

Source from the content-addressed store, hash-verified

1092}
1093
1094func httpTarget(srv *Server, path string) string {
1095 return fmt.Sprintf("http://%s%s", srv.HTTPListenAddr().String(), path)
1096}
1097
1098func httpsTarget(srv *Server, path string) string {
1099 return fmt.Sprintf("https://%s%s", srv.HTTPListenAddr().String(), path)

Callers 6

TestMiddlewareLoggingFunction · 0.85
TestLogSourceIPsFunction · 0.85
TestPprofCmdlineDisabledFunction · 0.85

Calls 2

HTTPListenAddrMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected