module Config {

    pub struct ServerConfig {
        bindAddr: String;
        port: int;
        workerCount: int;
        publicDir: String;
        backlog: int;
    }

    pub const func DefaultConfig() -> ServerConfig {
        return ServerConfig {
            bindAddr: "0.0.0.0",
            port: 8080,
            workerCount: 4,
            publicDir: "public",
            backlog: 128,
        };
    }

}
