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