MCPcopy
hub / github.com/nestjs/nest / getServiceNames

Method getServiceNames

packages/microservices/server/server-grpc.ts:124–130  ·  view source on GitHub ↗

* Will return all of the services along with their fully namespaced * names as an array of objects. * This method initiates recursive scan of grpcPkg object

(grpcPkg: any)

Source from the content-addressed store, hash-verified

122 * This method initiates recursive scan of grpcPkg object
123 */
124 public getServiceNames(grpcPkg: any): { name: string; service: any }[] {
125 // Define accumulator to collect all of the services available to load
126 const services: { name: string; service: any }[] = [];
127 // Initiate recursive services collector starting with empty name
128 this.collectDeepServices('', grpcPkg, services);
129 return services;
130 }
131
132 public getKeepaliveOptions() {
133 if (!isObject(this.options.keepalive)) {

Callers 2

createServicesMethod · 0.95

Calls 1

collectDeepServicesMethod · 0.95

Tested by

no test coverage detected