Skip to content

Commit

Permalink
feat(infra): added interface for mail queue provider
Browse files Browse the repository at this point in the history
  • Loading branch information
demmorou committed Sep 29, 2021
1 parent 6e1005f commit 8217ce7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/infra/providers/QueueProvider/models/IMailQueueProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export interface IJob {
data: string;
}

interface IMailQueueProvider {
addJob(job: string): Promise<void>;
addManyJobs(jobs: string[]): Promise<void>;
process(processFunction: (job: IJob) => Promise<void>): void;
}

export default IMailQueueProvider;

0 comments on commit 8217ce7

Please sign in to comment.