| 2878 | } |
| 2879 | |
| 2880 | func (c *unixSocketClient) ResumeSession(ctx context.Context, id string) (SessionRecord, error) { |
| 2881 | var response struct { |
| 2882 | Session SessionRecord `json:"session"` |
| 2883 | } |
| 2884 | path, err := c.sessionScopedPath(ctx, id, "/attach") |
| 2885 | if err != nil { |
| 2886 | return SessionRecord{}, err |
| 2887 | } |
| 2888 | if err := c.doJSON( |
| 2889 | ctx, |
| 2890 | http.MethodPost, |
| 2891 | path, |
| 2892 | nil, |
| 2893 | nil, |
| 2894 | &response, |
| 2895 | ); err != nil { |
| 2896 | return SessionRecord{}, err |
| 2897 | } |
| 2898 | return response.Session, nil |
| 2899 | } |
| 2900 | |
| 2901 | func (c *unixSocketClient) SessionRecap(ctx context.Context, id string, limit int) (SessionRecapRecord, error) { |
| 2902 | var response struct { |