arvo-event-handler
Version:
Type-safe event handler system with versioning, telemetry, and contract validation for distributed Arvo event-driven architectures, featuring routing and multi-handler support.
15 lines (14 loc) • 628 B
TypeScript
import type { ArvoEventHandlerOpenTelemetryOptions } from '../types';
import type { ExecuteMachineInput, ExecuteMachineOutput } from './types';
/**
* Interface defining a machine execution engine.
*/
export interface IMachineExectionEngine {
/**
* Executes a state machine and processes events.
* @param param - Input parameters for machine execution
* @param opentelemetry - Telemetry configuration options
* @returns Machine execution results including state and events
*/
execute: (param: ExecuteMachineInput, opentelemetry: ArvoEventHandlerOpenTelemetryOptions) => ExecuteMachineOutput;
}