(ctx context.Context, reset bool)
| 93 | } |
| 94 | |
| 95 | func (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 | |
| 104 | func (x *XrayHandler) GetUserStats(ctx context.Context, email string, reset bool) (*common.StatResponse, error) { |
| 105 | if email == "" { |