Added stat methods and anomaly detection algorithm
This commit is contained in:
4
main.go
4
main.go
@@ -52,6 +52,10 @@ func main() {
|
||||
controller.GetMoon(res, req, &cache.MoonCache, &vars)
|
||||
})
|
||||
|
||||
http.HandleFunc("/stats/", func(res http.ResponseWriter, req *http.Request) {
|
||||
controller.GetStatistics(res, req, statDB)
|
||||
})
|
||||
|
||||
listenAddr := fmt.Sprintf(":%s", port)
|
||||
log.Printf("Server listening on %s", listenAddr)
|
||||
http.ListenAndServe(listenAddr, nil)
|
||||
|
||||
Reference in New Issue
Block a user