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

Method GetOutboundsStats

backend/xray/api/stats.go:95–102  ·  view source on GitHub ↗
(ctx context.Context, reset bool)

Source from the content-addressed store, hash-verified

93}
94
95func (x *XrayHandler) GetOutboundsStats(ctx context.Context, reset bool) (*common.StatResponse, error) {
96 resp, err := x.QueryStats(ctx, "outbound>>>", reset)
97 if err != nil {
98 return nil, err
99 }
100
101 return buildStatResponse(resp.GetStat()), nil
102}
103
104func (x *XrayHandler) GetUserStats(ctx context.Context, email string, reset bool) (*common.StatResponse, error) {
105 if email == "" {

Callers 2

GetStatsMethod · 0.80
TestXrayBackendFunction · 0.80

Calls 2

QueryStatsMethod · 0.95
buildStatResponseFunction · 0.85

Tested by 1

TestXrayBackendFunction · 0.64