MCPcopy Create free account
hub / github.com/PasarGuard/node / handleUsersStats

Method handleUsersStats

backend/wireguard/stats.go:40–42  ·  view source on GitHub ↗
(ctx context.Context, request *common.StatRequest)

Source from the content-addressed store, hash-verified

38}
39
40func (wg *WireGuard) handleUsersStats(ctx context.Context, request *common.StatRequest) (*common.StatResponse, error) {
41 return wg.statsTracker.GetUsersStats(ctx, request.GetReset_()), nil
42}
43
44func (wg *WireGuard) handleInterfaceOutboundStats(name string, reset bool) (*common.StatResponse, error) {
45 if name == "" {

Callers 1

GetStatsMethod · 0.95

Calls 2

GetReset_Method · 0.80
GetUsersStatsMethod · 0.45

Tested by

no test coverage detected