blob: 7d0263b1554e9053ab6b64fcb74322f6c0ae023b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import * as videoTranscoder from './video-transcoder'
import { VideoInstance } from '../../../models'
export interface JobHandler<T> {
process (data: object, callback: (err: Error, videoInstance?: T) => void)
onError (err: Error, jobId: number, video: T, callback: (err: Error) => void)
onSuccess (data: any, jobId: number, video: T, callback: (err: Error) => void)
}
const jobHandlers: { [ handlerName: string ]: JobHandler<any> } = {
videoTranscoder
}
export {
jobHandlers
}
|