* 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)
| 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)) { |
no test coverage detected