vulcain-corejs
Version:
Vulcain micro-service framework
12 lines (11 loc) • 451 B
TypeScript
import { EventData, ActionData } from '../pipeline/actions';
export interface IActionBusAdapter {
startAsync(): any;
publishTask(domain: string, serviceId: string, command: ActionData): any;
consumeTask(domain: string, serviceId: string, handler: Function): any;
}
export interface IEventBusAdapter {
startAsync(): any;
sendEvent(domain: string, event: EventData): any;
consumeEvents(domain: string, handler: Function): any;
}