Model DistantEngine
work/distant::DistantEngine
Parameters
↳ const api_token: Option<string>
↳ const api_url: Option<string>
↳ const location: string = "api"
Model for requesting and connecting to a distant Mélodium worker.
DistantEngine sends a worker request to the Mélodium Services API or a local Compose
deployment, waits for the worker to become available, and provides an Access value for
establishing a distribution connection.
location: where to submit the request —"api"(default) for Mélodium Services, or"compose"for a local Docker/Podman Compose deployment.api_url: base URL of the Mélodium Services API; defaults to the built-in endpoint.api_token: authentication token for the API; can also be set via theMELODIUM_API_TOKENenvironment variable.
Use the distant treatment to trigger a worker request.