(ctx context.Context, id string)
| 2790 | } |
| 2791 | |
| 2792 | func (c *unixSocketClient) GetSessionHealth(ctx context.Context, id string) (SessionHealthRecord, error) { |
| 2793 | var response struct { |
| 2794 | Health SessionHealthRecord `json:"health"` |
| 2795 | } |
| 2796 | path, err := c.sessionScopedPath(ctx, id, "/health") |
| 2797 | if err != nil { |
| 2798 | return SessionHealthRecord{}, err |
| 2799 | } |
| 2800 | if err := c.doJSON(ctx, http.MethodGet, path, nil, nil, &response); err != nil { |
| 2801 | return SessionHealthRecord{}, err |
| 2802 | } |
| 2803 | return response.Health, nil |
| 2804 | } |
| 2805 | |
| 2806 | func (c *unixSocketClient) GetSessionStatus(ctx context.Context, id string) (SessionStatusRecord, error) { |
| 2807 | var response SessionStatusRecord |
nothing calls this directly
no test coverage detected