navigator/main.go

25 lines
506 B
Go

package main
import (
"flag"
_ "git.eve.moe/jackyyf/navigator/api/beacon/v1"
_ "git.eve.moe/jackyyf/navigator/api/navigator"
"git.eve.moe/jackyyf/navigator/ipgeo"
"git.eve.moe/jackyyf/navigator/mapping"
"log"
"net/http"
_ "net/http/pprof"
)
var (
listen_spec = flag.String("bind", "127.0.0.1:8086", "http server bind spec")
)
func main() {
flag.Parse()
ipgeo.Initialize()
mapping.Initialize()
log.Println("HTTP server is running on", *listen_spec)
http.ListenAndServe(*listen_spec, nil)
}