import { GapiModule, Container, Token } from "@gapi/core";
import { GapiPubSubService } from "./amqp.service";
import { AmqpConfigService } from './amqp-config.service';
import { AmqpConfig } from "./amqp.interface";

@GapiModule({
    services: [
        AmqpConfigService
    ]
})
export class GapiAmqpModule {
    static forRoot(config: AmqpConfig) {
        Container.set(GapiPubSubService, new GapiPubSubService(config));
        return GapiPubSubService;
    }
}

export * from './amqp.service';
export * from './amqp.interface';
export * from './amqp-config.service';
