implemented api handlers

This commit is contained in:
ston1th 2021-04-08 00:34:54 +02:00
commit 372915e24d
15 changed files with 302 additions and 73 deletions

View file

@ -78,8 +78,8 @@ func main() {
}()
sigs := make(chan os.Signal)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
<-sigs
log.Info("haproxy-lb shutdown")
s := <-sigs
log.Info("haproxy-lb shutdown", "signal", s.String())
c.Stop()
log.Info("haproxy-lb stopped")
}