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

Method GetInboundsStats

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

Source from the content-addressed store, hash-verified

84}
85
86func (x *XrayHandler) GetInboundsStats(ctx context.Context, reset bool) (*common.StatResponse, error) {
87 resp, err := x.QueryStats(ctx, "inbound>>>", reset)
88 if err != nil {
89 return nil, err
90 }
91
92 return buildStatResponse(resp.GetStat()), nil
93}
94
95func (x *XrayHandler) GetOutboundsStats(ctx context.Context, reset bool) (*common.StatResponse, error) {
96 resp, err := x.QueryStats(ctx, "outbound>>>", reset)

Callers 1

GetStatsMethod · 0.80

Calls 2

QueryStatsMethod · 0.95
buildStatResponseFunction · 0.85

Tested by

no test coverage detected