gin icon indicating copy to clipboard operation
gin copied to clipboard

if exist a signal be sent when all http server started

Open whybangbang opened this issue 3 years ago • 0 comments

in the case "Run multiple service using Gin", if exist a signal be sent when all http server started

for example

 g.Go(func() error {}
 g.Go(func() error {}

 <- g.Started() // sign all server started
 log.Info("all server is ready! notify pod to ready!")

 if err := g.Wait(); err != nil {
    log.Fatal(err)
  }

whybangbang avatar Sep 26 '22 23:09 whybangbang