(ctx context.Context, reset bool)
| 84 | } |
| 85 | |
| 86 | func (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 | |
| 95 | func (x *XrayHandler) GetOutboundsStats(ctx context.Context, reset bool) (*common.StatResponse, error) { |
| 96 | resp, err := x.QueryStats(ctx, "outbound>>>", reset) |
no test coverage detected