MCPcopy
hub / github.com/fatedier/frp / ServerMetrics

Interface ServerMetrics

server/metrics/metrics.go:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5)
6
7type ServerMetrics interface {
8 NewClient()
9 CloseClient()
10 NewProxy(name string, proxyType string, user string, clientID string)
11 CloseProxy(name string, proxyType string)
12 OpenConnection(name string, proxyType string)
13 CloseConnection(name string, proxyType string)
14 AddTrafficIn(name string, proxyType string, trafficBytes int64)
15 AddTrafficOut(name string, proxyType string, trafficBytes int64)
16}
17
18var Server ServerMetrics = noopServerMetrics{}
19

Callers 27

NewClientMethod · 0.65
DialHookWebsocketFunction · 0.65
handleConnectionMethod · 0.65
CloseClientMethod · 0.65
workerMethod · 0.65
CloseMethod · 0.65
callMutableWithUserFunction · 0.65
NewProxyMethod · 0.65
handleNewProxyMethod · 0.65
CloseProxyMethod · 0.65

Implementers 4

serverMetricspkg/metrics/prometheus/server.go
serverMetricspkg/metrics/mem/server.go
serverMetricspkg/metrics/aggregate/server.go
noopServerMetricsserver/metrics/metrics.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…