mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
17 lines
414 B
JavaScript
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');
|
|
}
|
|
} |