import type { JobHandler } from './types';

const handlers = new Map<string, JobHandler>();

export function registerHandler(handler: JobHandler) {
  handlers.set(handler.type, handler);
}

export function getHandler(type: string): JobHandler | undefined {
  return handlers.get(type);
}
