opengraph stuff
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user