UNPKG

vulcain-corejs

Version:
12 lines (11 loc) 454 B
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; }