summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
commit8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch)
tree05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts
pain
Diffstat (limited to 'frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts')
-rw-r--r--frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts
new file mode 100644
index 0000000..8e94e10
--- /dev/null
+++ b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts
@@ -0,0 +1,18 @@
+export interface TcpSubchannelAddress {
+ port: number;
+ host: string;
+}
+export interface IpcSubchannelAddress {
+ path: string;
+}
+/**
+ * This represents a single backend address to connect to. This interface is a
+ * subset of net.SocketConnectOpts, i.e. the options described at
+ * https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener.
+ * Those are in turn a subset of the options that can be passed to http2.connect.
+ */
+export type SubchannelAddress = TcpSubchannelAddress | IpcSubchannelAddress;
+export declare function isTcpSubchannelAddress(address: SubchannelAddress): address is TcpSubchannelAddress;
+export declare function subchannelAddressEqual(address1?: SubchannelAddress, address2?: SubchannelAddress): boolean;
+export declare function subchannelAddressToString(address: SubchannelAddress): string;
+export declare function stringToSubchannelAddress(addressString: string, port?: number): SubchannelAddress;