Skip to content

Commit

Permalink
Merge pull request #2650 from murgatroid99/grpc-js_server_interceptors
Browse files Browse the repository at this point in the history
grpc-js: Implement server interceptors
  • Loading branch information
murgatroid99 authored Feb 1, 2024
2 parents 4d7a7fb + 7c9a5e7 commit f70c322
Show file tree
Hide file tree
Showing 10 changed files with 1,533 additions and 858 deletions.
2 changes: 1 addition & 1 deletion packages/grpc-js/src/call-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface StatusObject {
}

export type PartialStatusObject = Pick<StatusObject, 'code' | 'details'> & {
metadata: Metadata | null;
metadata?: Metadata | null | undefined;
};

export const enum WriteFlags {
Expand Down
15 changes: 14 additions & 1 deletion packages/grpc-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
import { Metadata, MetadataOptions, MetadataValue } from './metadata';
import {
Server,
ServerOptions,
UntypedHandleCall,
UntypedServiceImplementation,
} from './server';
Expand Down Expand Up @@ -226,7 +227,7 @@ export const setLogVerbosity = (verbosity: LogVerbosity): void => {
logging.setLoggerVerbosity(verbosity);
};

export { Server };
export { Server, ServerOptions };
export { ServerCredentials };
export { KeyCertPair };

Expand Down Expand Up @@ -264,6 +265,18 @@ export { addAdminServicesToServer } from './admin';

export { ServiceConfig, LoadBalancingConfig, MethodConfig, RetryPolicy } from './service-config';

export {
ServerListener,
FullServerListener,
ServerListenerBuilder,
Responder,
FullResponder,
ResponderBuilder,
ServerInterceptingCallInterface,
ServerInterceptingCall,
ServerInterceptor
} from './server-interceptors';

import * as experimental from './experimental';
export { experimental };

Expand Down
Loading

0 comments on commit f70c322

Please sign in to comment.