1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[macro_use]
extern crate log;
extern crate bytes;
extern crate env_logger;
extern crate regex;
#[macro_use]
extern crate futures;
extern crate hostname;
extern crate tokio;
extern crate tokio_codec;

pub mod grammar;
pub mod model;
pub mod protocol;
pub mod server;
pub mod service;
pub mod util;

use server::SamotopBuilder;
use service::samotop::SamotopService;

pub fn builder() -> SamotopBuilder<SamotopService> {
    SamotopBuilder::new("localhost:25", SamotopService::new("Samotop"))
}