Skip to content

Commit

Permalink
grpc-js: Implement server interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Jan 26, 2024
1 parent 666a374 commit f52d142
Show file tree
Hide file tree
Showing 10 changed files with 1,544 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 f52d142

Please sign in to comment.