MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / String

Method String

scope.go:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (s *scope) String() string {
96 return fmt.Sprintf("[ Id: %s; User %q(%d) proxying as %q(%d) to %q(%d); RemoteAddr: %q; LocalAddr: %q; Duration: %d μs]",
97 s.id,
98 s.user.name, s.user.queryCounter.load(),
99 s.clusterUser.name, s.clusterUser.queryCounter.load(),
100 s.host.Host(), s.host.CurrentLoad(),
101 s.remoteAddr, s.localAddr, time.Since(s.startTime).Nanoseconds()/1000.0)
102}
103
104//nolint:cyclop // TODO abstract user queues to reduce complexity here.
105func (s *scope) incQueued() error {

Callers 11

ServeHTTPMethod · 0.45
toStringFunction · 0.45
TestGetFullQueryGzippedFunction · 0.45
getQuerySnippetFromBodyFunction · 0.45
newScopeFunction · 0.45
killQueryMethod · 0.45
decorateRequestMethod · 0.45
TestServeFunction · 0.45
makeHeavyRequestFunction · 0.45
main.goFile · 0.45
serveFunction · 0.45

Calls 3

HostMethod · 0.80
CurrentLoadMethod · 0.80
loadMethod · 0.45

Tested by 3

TestGetFullQueryGzippedFunction · 0.36
TestServeFunction · 0.36
makeHeavyRequestFunction · 0.36