jpillora / overseer

Monitorable, gracefully restarting, self-upgrading binaries in Go (golang)
MIT License
2.29k stars 208 forks source link

How to introduce overseer in ListenAndServe in Gin #88

Closed bourne-3 closed 1 year ago

bourne-3 commented 1 year ago

Hello, greate project! I am going to import it as a component into my project. At present, I am using gin to start the service through ListenAndServ(). For now, I have not found how to introduce a custom Listener on the Internet. How can I solve it? The following is fragment of my code

func (s *MyServer) ListenAndServe() {
    s.Server.Handler = s.Engine
    if err := s.Server.ListenAndServe(); err != nil {
    }
}
bourne-3 commented 1 year ago

have Similar problem solve! https://github.com/jpillora/overseer/issues/63