1 |
|
2 |
|
3 | import { Socket } from 'net';
|
4 | import * as tls from 'tls';
|
5 | import { SubchannelAddress } from './subchannel-address';
|
6 | import { ChannelOptions } from './channel-options';
|
7 | import { GrpcUri } from './uri-parser';
|
8 | export interface ProxyMapResult {
|
9 | target: GrpcUri;
|
10 | extraOptions: ChannelOptions;
|
11 | }
|
12 | export declare function mapProxyName(target: GrpcUri, options: ChannelOptions): ProxyMapResult;
|
13 | export interface ProxyConnectionResult {
|
14 | socket?: Socket;
|
15 | realTarget?: GrpcUri;
|
16 | }
|
17 | export declare function getProxiedConnection(address: SubchannelAddress, channelOptions: ChannelOptions, connectionOptions: tls.ConnectionOptions): Promise<ProxyConnectionResult>;
|