use crate::reactor::State;
mod telegram;
pub use self::telegram::TelegramNotifier;
mod command;
pub use self::command::CommandNotifier;
mod hipchat;
pub use self::hipchat::HipchatNotifier;
mod slack;
pub use self::slack::SlackNotifier;
#[derive(Debug)]
pub struct Notification {
pub checker_id: String,
pub checker_url: String,
pub state: State,
}
pub trait Notifier {
fn notify(&self, notification: &Notification) -> Result<(), ()>;
}