func recvChangeSig(sigchan <-chan os.Signal) { // aostor.FillCaches(true) for _ = range sigchan { logger.Printf("\n\n***\nreceived Change signal, calling FillCaches") aostor.FillCaches(true) logger.Printf("\n***\n\n") } }
func sigHandler(w http.ResponseWriter, r *http.Request) { logger.Printf("SIGNAL") aostor.FillCaches(true) w.Write([]byte("OK")) }