mirror of https://github.com/grpc/grpc-node.git
grpc-js: expose Server implementation publicly
This commit exposes the pure JS Server as public API.
This commit is contained in:
parent
bf4c6b9e54
commit
0b4fd1365a
|
@ -38,6 +38,7 @@ import {
|
|||
Serialize,
|
||||
} from './make-client';
|
||||
import { Metadata } from './metadata';
|
||||
import { Server } from './server';
|
||||
import { KeyCertPair, ServerCredentials } from './server-credentials';
|
||||
import { StatusBuilder } from './status-builder';
|
||||
|
||||
|
@ -259,10 +260,7 @@ export const setLogVerbosity = (verbosity: LogVerbosity): void => {
|
|||
logging.setLoggerVerbosity(verbosity);
|
||||
};
|
||||
|
||||
export const Server = (options: any) => {
|
||||
throw new Error('Not yet implemented');
|
||||
};
|
||||
|
||||
export { Server };
|
||||
export { ServerCredentials };
|
||||
export { KeyCertPair };
|
||||
|
||||
|
|
|
@ -21,10 +21,9 @@ import * as assert from 'assert';
|
|||
import * as path from 'path';
|
||||
|
||||
import * as grpc from '../src';
|
||||
import { ServerCredentials } from '../src';
|
||||
import { Server, ServerCredentials } from '../src';
|
||||
import { ServiceError } from '../src/call';
|
||||
import { ServiceClient, ServiceClientConstructor } from '../src/make-client';
|
||||
import { Server } from '../src/server';
|
||||
import {
|
||||
sendUnaryData,
|
||||
ServerUnaryCall,
|
||||
|
|
|
@ -21,9 +21,9 @@ import * as assert from 'assert';
|
|||
import { join } from 'path';
|
||||
|
||||
import * as grpc from '../src';
|
||||
import { Server } from '../src';
|
||||
import { ServiceError } from '../src/call';
|
||||
import { ServiceClient, ServiceClientConstructor } from '../src/make-client';
|
||||
import { Server } from '../src/server';
|
||||
import {
|
||||
sendUnaryData,
|
||||
ServerDuplexStream,
|
||||
|
|
|
@ -23,10 +23,9 @@ import * as http2 from 'http2';
|
|||
import * as path from 'path';
|
||||
|
||||
import * as grpc from '../src';
|
||||
import { ServerCredentials } from '../src';
|
||||
import { Server, ServerCredentials } from '../src';
|
||||
import { ServiceError } from '../src/call';
|
||||
import { ServiceClient, ServiceClientConstructor } from '../src/make-client';
|
||||
import { Server } from '../src/server';
|
||||
import { sendUnaryData, ServerUnaryCall } from '../src/server-call';
|
||||
|
||||
import { loadProtoFile } from './common';
|
||||
|
|
Loading…
Reference in New Issue