1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
extern crate hyper;
extern crate rustc_serialize;
#[macro_use]
extern crate log;

mod config;
mod notifier;
mod notice;

use notifier::Notifier;
use config::Config;

pub fn configure<F>(configurator: F) -> Notifier where F: Fn(&mut Config) {
    let mut config = Config::new();
    configurator(&mut config);
    Notifier::new(config)
}