Skip to content

Instantly share code, notes, and snippets.

@witalobenicio
Last active July 30, 2021 10:46
Show Gist options
  • Save witalobenicio/ace7c9875035456e2c37780de6f0816c to your computer and use it in GitHub Desktop.
Save witalobenicio/ace7c9875035456e2c37780de6f0816c to your computer and use it in GitHub Desktop.
import { IQueue } from '@managers/queue/types/Queue';
import QueuePriorityToDo from '@queue/types/QueuePriorityToDo';
class QueueToDo implements IQueue {
private readonly url: string = '<your-queue-endpoint>';
public getUrl(): string {
return this.url;
}
public getPriorityQueue(): IQueue {
return QueuePriorityToDo;
}
}
export default (new QueueToDo());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment