(ctx context.Context, id string)
| 2848 | } |
| 2849 | |
| 2850 | func (c *unixSocketClient) StopSession(ctx context.Context, id string) error { |
| 2851 | path, err := c.sessionScopedPath(ctx, id, "/stop") |
| 2852 | if err != nil { |
| 2853 | return err |
| 2854 | } |
| 2855 | return c.doJSON( |
| 2856 | ctx, |
| 2857 | http.MethodPost, |
| 2858 | path, |
| 2859 | nil, |
| 2860 | nil, |
| 2861 | nil, |
| 2862 | ) |
| 2863 | } |
| 2864 | |
| 2865 | func (c *unixSocketClient) DeleteSession(ctx context.Context, id string) error { |
| 2866 | path, err := c.sessionScopedPath(ctx, id, "") |