misskey/src/queue/processors/http/index.ts

18 lines
454 B
TypeScript
Raw Normal View History

2018-04-02 11:16:13 +00:00
import deliverPost from './deliver-post';
2018-04-01 10:43:26 +00:00
import follow from './follow';
2018-03-31 10:55:00 +00:00
import performActivityPub from './perform-activitypub';
2018-04-02 09:36:47 +00:00
import processInbox from './process-inbox';
2018-03-31 10:55:00 +00:00
import reportGitHubFailure from './report-github-failure';
2018-04-03 08:18:06 +00:00
import unfollow from './unfollow';
2018-03-31 10:55:00 +00:00
const handlers = {
2018-04-02 11:16:13 +00:00
deliverPost,
2018-04-01 10:43:26 +00:00
follow,
2018-03-31 10:55:00 +00:00
performActivityPub,
2018-04-02 09:36:47 +00:00
processInbox,
2018-03-31 10:55:00 +00:00
reportGitHubFailure,
2018-04-03 08:18:06 +00:00
unfollow
2018-03-31 10:55:00 +00:00
};
export default (job, done) => handlers[job.data.type](job, done);