(ctx context.Context, pattern string, reset bool)
| 39 | } |
| 40 | |
| 41 | func (x *XrayHandler) QueryStats(ctx context.Context, pattern string, reset bool) (*command.QueryStatsResponse, error) { |
| 42 | client := *x.StatsServiceClient |
| 43 | resp, err := client.QueryStats(ctx, &command.QueryStatsRequest{Pattern: pattern, Reset_: reset}) |
| 44 | if err != nil { |
| 45 | return nil, err |
| 46 | } |
| 47 | |
| 48 | return resp, nil |
| 49 | } |
| 50 | |
| 51 | func (x *XrayHandler) GetUserOnlineStats(ctx context.Context, email string) (*common.OnlineStatResponse, error) { |
| 52 | if email == "" { |
no outgoing calls
no test coverage detected