1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00
Files
nttgin-BGPalerter/reports/report.js
2019-06-29 22:53:45 +02:00

17 lines
414 B
JavaScript

export default class Report {
constructor(channels, config, pubSub) {
this.config = config;
for (let channel of channels){
pubSub.subscribe(channel, (message, content) => {
this.report(message, content);
});
}
}
report = (message, content) => {
throw new Error('The method report must be implemented');
}
}