speedtest-go/main.go
2020-06-16 16:24:29 +08:00

19 lines
361 B
Go

package main
import (
"github.com/librespeed/speedtest/config"
"github.com/librespeed/speedtest/database"
"github.com/librespeed/speedtest/results"
"github.com/librespeed/speedtest/web"
log "github.com/sirupsen/logrus"
)
func main() {
conf := config.Load()
results.Initialize(&conf)
database.SetDBInfo(&conf)
log.Fatal(web.ListenAndServe(&conf))
}