(ctx context.Context, raw json.RawMessage)
| 114 | } |
| 115 | |
| 116 | func (h *HostAPIHandler) handleTasksDashboard(ctx context.Context, raw json.RawMessage) (any, error) { |
| 117 | var params hostAPITaskDashboardParams |
| 118 | if err := decodeHostAPIParams(raw, ¶ms); err != nil { |
| 119 | return nil, err |
| 120 | } |
| 121 | |
| 122 | observer, err := h.taskObserver() |
| 123 | if err != nil { |
| 124 | return nil, err |
| 125 | } |
| 126 | query, err := h.taskDashboardQueryFromParams(ctx, params) |
| 127 | if err != nil { |
| 128 | return nil, err |
| 129 | } |
| 130 | |
| 131 | view, err := observer.QueryTaskDashboard(ctx, query) |
| 132 | if err != nil { |
| 133 | return nil, mapTaskRPCError("", err) |
| 134 | } |
| 135 | return taskDashboardPayloadFromView(&view), nil |
| 136 | } |
| 137 | |
| 138 | func (h *HostAPIHandler) handleTasksInbox(ctx context.Context, raw json.RawMessage) (any, error) { |
| 139 | var params hostAPITaskInboxParams |
nothing calls this directly
no test coverage detected