(ctx context.Context, id string, limit int)
| 2899 | } |
| 2900 | |
| 2901 | func (c *unixSocketClient) SessionRecap(ctx context.Context, id string, limit int) (SessionRecapRecord, error) { |
| 2902 | var response struct { |
| 2903 | Recap SessionRecapRecord `json:"recap"` |
| 2904 | } |
| 2905 | path, err := c.sessionScopedPath(ctx, id, "/recap") |
| 2906 | if err != nil { |
| 2907 | return SessionRecapRecord{}, err |
| 2908 | } |
| 2909 | values := url.Values{} |
| 2910 | if limit > 0 { |
| 2911 | values.Set("limit", strconv.Itoa(limit)) |
| 2912 | } |
| 2913 | if err := c.doJSON(ctx, http.MethodGet, path, values, nil, &response); err != nil { |
| 2914 | return SessionRecapRecord{}, err |
| 2915 | } |
| 2916 | return response.Recap, nil |
| 2917 | } |
| 2918 | |
| 2919 | func (c *unixSocketClient) RepairSession( |
| 2920 | ctx context.Context, |
nothing calls this directly
no test coverage detected