|
18 | 18 | import * as http2 from 'http2';
|
19 | 19 | import * as util from 'util';
|
20 | 20 |
|
21 |
| -import { CipherNameAndProtocol, TLSSocket } from 'tls'; |
22 | 21 | import { ServiceError } from './call';
|
23 |
| -import { PartialStatusObject } from './call-interface'; |
24 |
| -import { ChannelOptions } from './channel-options'; |
25 |
| -import { |
26 |
| - ChannelzCallTracker, |
27 |
| - ChannelzCallTrackerStub, |
28 |
| - ChannelzChildrenTracker, |
29 |
| - ChannelzChildrenTrackerStub, |
30 |
| - ChannelzTrace, |
31 |
| - ChannelzTraceStub, |
32 |
| - ServerInfo, |
33 |
| - ServerRef, |
34 |
| - SocketInfo, |
35 |
| - SocketRef, |
36 |
| - TlsInfo, |
37 |
| - registerChannelzServer, |
38 |
| - registerChannelzSocket, |
39 |
| - unregisterChannelzRef, |
40 |
| -} from './channelz'; |
41 |
| -import { LogVerbosity, Status } from './constants'; |
42 |
| -import * as logging from './logging'; |
| 22 | +import { Status, LogVerbosity } from './constants'; |
43 | 23 | import { Deserialize, Serialize, ServiceDefinition } from './make-client';
|
44 | 24 | import { Metadata } from './metadata';
|
45 |
| -import { |
46 |
| - ResolverListener, |
47 |
| - createResolver, |
48 |
| - mapUriDefaultScheme, |
49 |
| -} from './resolver'; |
50 | 25 | import {
|
51 | 26 | BidiStreamingHandler,
|
52 | 27 | ClientStreamingHandler,
|
53 | 28 | HandleCall,
|
54 | 29 | Handler,
|
55 | 30 | HandlerType,
|
| 31 | + sendUnaryData, |
56 | 32 | ServerDuplexStream,
|
57 | 33 | ServerDuplexStreamImpl,
|
58 |
| - ServerErrorResponse, |
59 | 34 | ServerReadableStream,
|
60 |
| - ServerStatusResponse, |
61 | 35 | ServerStreamingHandler,
|
62 | 36 | ServerUnaryCall,
|
63 | 37 | ServerWritableStream,
|
64 | 38 | ServerWritableStreamImpl,
|
65 | 39 | UnaryHandler,
|
66 |
| - sendUnaryData, |
| 40 | + ServerErrorResponse, |
| 41 | + ServerStatusResponse, |
67 | 42 | serverErrorToStatus,
|
68 | 43 | } from './server-call';
|
69 | 44 | import { ServerCredentials } from './server-credentials';
|
| 45 | +import { ChannelOptions } from './channel-options'; |
70 | 46 | import {
|
71 |
| - ServerInterceptingCallInterface, |
72 |
| - ServerInterceptor, |
73 |
| - getServerInterceptingCall, |
74 |
| -} from './server-interceptors'; |
| 47 | + createResolver, |
| 48 | + ResolverListener, |
| 49 | + mapUriDefaultScheme, |
| 50 | +} from './resolver'; |
| 51 | +import * as logging from './logging'; |
75 | 52 | import {
|
76 | 53 | SubchannelAddress,
|
77 | 54 | isTcpSubchannelAddress,
|
78 |
| - stringToSubchannelAddress, |
79 | 55 | subchannelAddressToString,
|
| 56 | + stringToSubchannelAddress, |
80 | 57 | } from './subchannel-address';
|
81 |
| -import { CallEventTracker } from './transport'; |
82 | 58 | import {
|
83 | 59 | GrpcUri,
|
84 | 60 | combineHostPort,
|
85 | 61 | parseUri,
|
86 | 62 | splitHostPort,
|
87 | 63 | uriToString,
|
88 | 64 | } from './uri-parser';
|
| 65 | +import { |
| 66 | + ChannelzCallTracker, |
| 67 | + ChannelzCallTrackerStub, |
| 68 | + ChannelzChildrenTracker, |
| 69 | + ChannelzChildrenTrackerStub, |
| 70 | + ChannelzTrace, |
| 71 | + ChannelzTraceStub, |
| 72 | + registerChannelzServer, |
| 73 | + registerChannelzSocket, |
| 74 | + ServerInfo, |
| 75 | + ServerRef, |
| 76 | + SocketInfo, |
| 77 | + SocketRef, |
| 78 | + TlsInfo, |
| 79 | + unregisterChannelzRef, |
| 80 | +} from './channelz'; |
| 81 | +import { CipherNameAndProtocol, TLSSocket } from 'tls'; |
| 82 | +import { |
| 83 | + ServerInterceptingCallInterface, |
| 84 | + ServerInterceptor, |
| 85 | + getServerInterceptingCall, |
| 86 | +} from './server-interceptors'; |
| 87 | +import { PartialStatusObject } from './call-interface'; |
| 88 | +import { CallEventTracker } from './transport'; |
89 | 89 |
|
90 | 90 | const UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31);
|
91 | 91 | const KEEPALIVE_MAX_TIME_MS = ~(1 << 31);
|
|
0 commit comments