Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soygul opened this issue Feb 12, 2016 · 1 comment

Comments

@soygul
Copy link
Member

soygul commented Feb 12, 2016

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

@soygul soygul changed the title Remove Config struct and use net/http style *net.Conn structure as a parater to Server Remove Config struct and use net/http style *net.Conn structure as a parameter to Server Feb 12, 2016
@soygul
Copy link
Member Author

soygul commented Feb 22, 2016

+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(...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant