Open History to see the last commit
1import type { ProviderDriverKind, ProviderInstanceId, ServerProvider } from "@t3tools/contracts";
2import type * as Stream from "effect/Stream";
3import type { ServerProviderShape } from "./Services/ServerProvider.ts";
4
5export type ProviderSnapshotSource = {
6 /**
7 * Routing key — uniquely identifies this instance in the aggregated
8 * snapshot list. Two different snapshot sources may share the same
9 * driver kind (multiple instances of the same driver).
10 */
11 readonly instanceId: ProviderInstanceId;
12 /** Driver implementation kind. */
13 readonly driverKind: ProviderDriverKind;
14 readonly getSnapshot: ServerProviderShape["getSnapshot"];
15 readonly refresh: ServerProviderShape["refresh"];
16 readonly streamChanges: Stream.Stream<ServerProvider>;
17};