| 293 | * Interface for retrieving an archive from remote or local storage. |
| 294 | */ |
| 295 | export interface Source { |
| 296 | getBytes: ( |
| 297 | offset: number, |
| 298 | length: number, |
| 299 | signal?: AbortSignal, |
| 300 | etag?: string |
| 301 | ) => Promise<RangeResponse>; |
| 302 | |
| 303 | /** |
| 304 | * Return a unique string key for the archive e.g. a URL. |
| 305 | */ |
| 306 | getKey: () => string; |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * Use the Browser's File API, which is different from the NodeJS file API. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…