(ctx context.Context)
| 501 | } |
| 502 | |
| 503 | func (h *HostAPIHandler) taskActorContext(ctx context.Context) (taskpkg.ActorContext, error) { |
| 504 | extName := hostAPIExtensionNameFromContext(ctx) |
| 505 | if extName == "" { |
| 506 | return taskpkg.ActorContext{}, unavailableRPCError(errors.New("extension name is not available")) |
| 507 | } |
| 508 | |
| 509 | actor, err := taskpkg.DeriveExtensionActorContext(extName, "") |
| 510 | if err != nil { |
| 511 | return taskpkg.ActorContext{}, invalidParamsRPCError(err) |
| 512 | } |
| 513 | return actor, nil |
| 514 | } |
| 515 | |
| 516 | func (h *HostAPIHandler) taskQueryFromParams( |
| 517 | ctx context.Context, |
no test coverage detected