@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 40 lines 1.13 KB
Raw
1 import type * as redis from "@distilled.cloud/gcp/redis_v1";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Instance } from "./Instance.ts";
6
7 export interface GetInstanceRequest extends Omit<
8 redis.GetProjectsLocationsInstancesRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Memorystore Redis `instances.get`.
14 *
15 * Bind this operation to an {@link Instance} in a Function/Action init
16 * phase. Provide {@link GetInstanceHttp}.
17 *
18 * ### Observing Instances
19 * **Example:** Read the bound instance
20 * ```typescript
21 * const getInstance = yield* GCP.Redis.GetInstance(cache);
22 * const live = yield* getInstance();
23 * ```
24 *
25 * @binding
26 * @category Redis
27 */
28 export interface GetInstance extends Binding.Service<
29 GetInstance,
30 "GCP.Redis.GetInstance",
31 (
32 instance: Instance,
33 ) => Effect.Effect<
34 (
35 request?: GetInstanceRequest,
36 ) => Effect.Effect<redis.Instance, redis.GetProjectsLocationsInstancesError, RuntimeContext>
37 >
38 > {}
39
40 export const GetInstance = Binding.Service<GetInstance>("GCP.Redis.GetInstance");