titan-x / titan

Messaging server with mobile and browser support.
MIT License
2 stars 3 forks source link

Remove Config struct and use net/http style *net.Conn structure as a parameter to Server #83

Open soygul opened 8 years ago

soygul commented 8 years ago

Same goes for replacing Client.UseTLS -> Client.UseConf(...) or similar usage in golang std.

soygul commented 8 years ago

+1 again for this. Having to do this:

    titan.InitConf("test")
    s, err := titan.NewServer(addr)

is super duper ugly and non-standard. Should be titan.NewServer(conf) or at least titan.NewServer(addr, a, b, c, conf) like in tls.Listen(...).