TServices extends Record<string, unknown> = { }
add<TName extends string,TInstance,>(service: HermodServiceInterface<TName, TInstance>): void
Add a service to the service discovery.
Get a service from the service discovery.
getMany<K extends (keyof TServices & string)[]>(names: [...K]): Promise<[P in K[number]]: TServices[P]>
Get multiple services from the service discovery.
has(service: string | HermodService): boolean
Check if a service exists in the service discovery.
register<T extends HermodServiceConstructor[]>(services: T): Promise<HermodServiceRecord<T>>
Register multiple services with the service discovery.
private
_instance: HermodServiceDiscovery<any>
getInstance<T extends Record<any, unknown> = { }>(): HermodServiceDiscovery<T>