fvbock / endless

Zero downtime restarts for go servers (Drop in replacement for http.ListenAndServe)
MIT License
4.05k stars 342 forks source link

how to use with r.Run(":8080") and r.RunTLS(":8443", "server.pem", "server.key") #46

Closed snowdream closed 5 years ago

snowdream commented 5 years ago

how to use with r.Run(":8080") and r.RunTLS(":8443", "server.pem", "server.key")

snowdream commented 5 years ago
// HTTP
go endless.ListenAndServe(":8080", r)

endless.ListenAndServeTLS(":8443", "server.pem", "server.key", r)