/** * @author Martin Karkowski * @email m.karkowski@zema.de * @create date 2018-05-22 12:46:05 * @modify date 2018-07-02 04:06:10 * @desc [description] */ import { IDescriptor } from '../../mod-Assembly-Builder/type/interfaces'; import { BaseGrpcBroker } from '../src/grpc-Broker'; import { BaseProtoRegistery } from '../src/grpc-registery'; import { BaseGrpcStub } from '../src/grpc-stub'; import { IGrpcRegistry, IGrpcStub } from '../type/interfaces'; import * as TYPEDEF from '../type/types'; export const TYPES = TYPEDEF.TYPES; export const EXPORT: Array = [ { selector: TYPES.Registry, factorySelector: TYPES.RegistryFactory, type: BaseProtoRegistery, options: { scope: 'inSingletonScope' } }, { selector: TYPES.GrpcBroker, factorySelector: TYPES.GrpcBrokerFactory, type: BaseGrpcBroker, options: { scope: 'inSingletonScope' } }, { selector: TYPES.GrpcStub, factorySelector: TYPES.GrpcStubFactory, type: BaseGrpcStub, }, ]; /** Export the Type */ export type Registery = IGrpcRegistry; export type Stub = IGrpcStub; export type Broker = BaseGrpcBroker; export const NAME = 'GRPC'; export const REQUIRE = ['LOGGER', 'PUBSUB', 'BROKER']