Spaces:
Sleeping
Sleeping
Download src/interfaces/core/IWorkerRegistryAPI.ts from lamsaoganh/teamta: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/core/IWorkerRegistryAPI.ts
- Command line
-
hf download hf://spaces/lamsaoganh/teamta/src/interfaces/core/IWorkerRegistryAPI.ts
-
curl -L -o IWorkerRegistryAPI.ts https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/core/IWorkerRegistryAPI.ts
523 Bytes
| import { IWorkerRegistry } from "./IWorkerRegistry"; | |
| export interface IWorkerRegistryAPI { | |
| registerOrUpdate({ workerRegistryData }: { workerRegistryData: IWorkerRegistry }): Promise<void>; | |
| unRegister({ workerRegistryData }: { workerRegistryData: IWorkerRegistry }): Promise<void>; | |
| sendHeartbeat({ workerRegistryData }: { workerRegistryData: IWorkerRegistry }): Promise<void>; | |
| healthCheck(): Promise<boolean>; | |
| getWorkerInfo({ workerId }: { workerId: string }): Promise<IWorkerRegistry | null>; | |
| } |