( ctx context.Context, id string, includeCleared bool, )
| 4466 | } |
| 4467 | |
| 4468 | func (c *unixSocketClient) ListTaskBlocks( |
| 4469 | ctx context.Context, |
| 4470 | id string, |
| 4471 | includeCleared bool, |
| 4472 | ) ([]TaskBlockRecord, error) { |
| 4473 | var response contract.TaskBlocksResponse |
| 4474 | values := url.Values{} |
| 4475 | if includeCleared { |
| 4476 | values.Set("include_cleared", "true") |
| 4477 | } |
| 4478 | if err := c.doJSON(ctx, http.MethodGet, taskBlocksPath(id), values, nil, &response); err != nil { |
| 4479 | return nil, err |
| 4480 | } |
| 4481 | return response.Blocks, nil |
| 4482 | } |
| 4483 | |
| 4484 | func (c *unixSocketClient) ClearTaskBlock( |
| 4485 | ctx context.Context, |
nothing calls this directly
no test coverage detected