Commit 2feca4dc authored by brent's avatar brent

add whitelist

parent 5adff703
......@@ -47,11 +47,11 @@ func (d backendService) ServiceType() common.ServiceType {
return common.SERVICE_BACKEND
}
func (d backendService) Instance() string {
hostname, _ := os.Hostname()
port, _ := beego.AppConfig.String("httpport")
return "http://" + hostname + ":" + port
}
//func (d backendService) Instance() string {
// hostname, _ := os.Hostname()
// port, _ := beego.AppConfig.String("httpport")
// return "http://" + hostname + ":" + port
//}
func (d backendService) Status() string {
//hostname, _ := os.Hostname()
......
......@@ -62,9 +62,8 @@ func main() {
cronjob.Start()
mysql.GetMysqlInstace()
//postgres.Query("")
beego.Run()
registry.RegistryBackend()
beego.Run()
//id, err := snowflake.NextId()
//if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment