2020-02-24 18:01:59 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-04-03 00:58:34 +00:00
|
|
|
"github.com/librespeed/speedtest/config"
|
|
|
|
"github.com/librespeed/speedtest/database"
|
|
|
|
"github.com/librespeed/speedtest/web"
|
2020-02-24 18:01:59 +00:00
|
|
|
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
conf := config.Load()
|
|
|
|
|
|
|
|
database.SetDBInfo(&conf)
|
|
|
|
log.Fatal(web.ListenAndServe(&conf))
|
|
|
|
}
|