Commit 2feca4dc authored by brent's avatar brent

add whitelist

parent 5adff703
...@@ -47,11 +47,11 @@ func (d backendService) ServiceType() common.ServiceType { ...@@ -47,11 +47,11 @@ func (d backendService) ServiceType() common.ServiceType {
return common.SERVICE_BACKEND return common.SERVICE_BACKEND
} }
func (d backendService) Instance() string { //func (d backendService) Instance() string {
hostname, _ := os.Hostname() // hostname, _ := os.Hostname()
port, _ := beego.AppConfig.String("httpport") // port, _ := beego.AppConfig.String("httpport")
return "http://" + hostname + ":" + port // return "http://" + hostname + ":" + port
} //}
func (d backendService) Status() string { func (d backendService) Status() string {
//hostname, _ := os.Hostname() //hostname, _ := os.Hostname()
......
...@@ -62,9 +62,8 @@ func main() { ...@@ -62,9 +62,8 @@ func main() {
cronjob.Start() cronjob.Start()
mysql.GetMysqlInstace() mysql.GetMysqlInstace()
//postgres.Query("") //postgres.Query("")
beego.Run()
registry.RegistryBackend() registry.RegistryBackend()
beego.Run()
//id, err := snowflake.NextId() //id, err := snowflake.NextId()
//if err != nil { //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