MCPcopy Create free account
hub / github.com/tailscale/tailscale / Expvar

Method Expvar

cmd/pgproxy/pgproxy.go:148–154  ·  view source on GitHub ↗

Expvar returns p's monitoring metrics.

()

Source from the content-addressed store, hash-verified

146
147// Expvar returns p's monitoring metrics.
148func (p *proxy) Expvar() expvar.Var {
149 ret := &metrics.Set{}
150 ret.Set("sessions_active", &p.activeSessions)
151 ret.Set("sessions_started", &p.startedSessions)
152 ret.Set("session_errors", &p.errors)
153 return ret
154}
155
156// Serve accepts postgres client connections on ln and proxies them to
157// the configured upstream. ln can be any net.Listener, but all client

Callers 1

mainFunction · 0.80

Implementers 2

socksProxycontrol/controlhttp/http_test.go
httpProxycontrol/controlhttp/http_test.go

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected