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, 04:45 UTC
| 1 | /** |
| 2 | * The `NodeDns` module provides the Node.js `Dns` service for Effect programs. |
| 3 | * |
| 4 | * Address lookups use the operating system resolver through `dns.lookup`, so |
| 5 | * they also read the hosts file. Record queries and reverse lookups share one |
| 6 | * `dns.Resolver`. Node.js cannot cancel a single query or address lookup, so |
| 7 | * interrupting one discards its result but lets the underlying work finish: a |
| 8 | * query runs until it is answered or times out, and a `getaddrinfo` call keeps |
| 9 | * a libuv thread pool worker busy until it returns. |
| 10 | * |
| 11 | * @stability experimental |
| 12 | * @since 4.0.0 |
| 13 | */ |
| 14 | |
| 15 | export type { |
| 16 | /** |
| 17 | * Options for the Node.js `Dns` service: name servers, timeout, and tries |
| 18 | * for record queries and reverse lookups. |
| 19 | * |
| 20 | * @stability experimental |
| 21 | * @category re-exports |
| 22 | * @since 4.0.0 |
| 23 | */ |
| 24 | Options |
| 25 | } from "@effect/platform-node-shared/NodeDns" |
| 26 | |
| 27 | export { |
| 28 | /** |
| 29 | * Layer that provides the Node.js `Dns` service using the system resolver |
| 30 | * configuration. |
| 31 | * |
| 32 | * @stability experimental |
| 33 | * @category re-exports |
| 34 | * @since 4.0.0 |
| 35 | */ |
| 36 | layer, |
| 37 | /** |
| 38 | * Creates a layer that provides the Node.js `Dns` service with options read |
| 39 | * from configuration. |
| 40 | * |
| 41 | * @stability experimental |
| 42 | * @category re-exports |
| 43 | * @since 4.0.0 |
| 44 | */ |
| 45 | layerConfig, |
| 46 | /** |
| 47 | * Creates a Node.js `Dns` service whose resolver lives as long as the scope. |
| 48 | * |
| 49 | * @stability experimental |
| 50 | * @category re-exports |
| 51 | * @since 4.0.0 |
| 52 | */ |
| 53 | make |
| 54 | } from "@effect/platform-node-shared/NodeDns" |