(ctx context.Context, reset bool)
| 75 | } |
| 76 | |
| 77 | func (x *XrayHandler) GetUsersStats(ctx context.Context, reset bool) (*common.StatResponse, error) { |
| 78 | resp, err := x.QueryStats(ctx, "user>>>", reset) |
| 79 | if err != nil { |
| 80 | return nil, err |
| 81 | } |
| 82 | |
| 83 | return buildStatResponse(resp.GetStat()), nil |
| 84 | } |
| 85 | |
| 86 | func (x *XrayHandler) GetInboundsStats(ctx context.Context, reset bool) (*common.StatResponse, error) { |
| 87 | resp, err := x.QueryStats(ctx, "inbound>>>", reset) |