2020-04-21 12:16:28 +07:00
|
|
|
package main
|
|
|
|
|
2020-04-23 07:42:16 +07:00
|
|
|
import (
|
|
|
|
"status/server"
|
|
|
|
)
|
|
|
|
|
2020-04-21 12:16:28 +07:00
|
|
|
func main() {
|
|
|
|
cfg, err := ReadConfig("config.json")
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2020-04-23 07:42:16 +07:00
|
|
|
go checkLoop(cfg.Targets)
|
|
|
|
server.StartServer(cfg.Port)
|
2020-04-21 12:16:28 +07:00
|
|
|
}
|