| | |
| | | ServerId string `mapstructure: "serverId"` |
| | | ServerIp string `mapstructure: "serverIp"` |
| | | VideoPort string `mapstructure: "videoPort"` |
| | | NginxIp string `mapstructure: "ngxIp"` |
| | | NginxPort string `mapstructure: "ngxPort"` |
| | | NgxIp string `mapstructure: "ngxIp"` |
| | | NgxPort string `mapstructure: "ngxPort"` |
| | | } |
| | | |
| | | var serverList = &server{} |
| | |
| | | for _,s :=range *serverList { |
| | | si := s |
| | | ServerMap[si.ServerId] = "http://"+si.ServerIp+":"+si.VideoPort+"/getRecordVideoPath" |
| | | NgxMap[si.ServerId] = "http://"+si.NginxIp+":"+si.NginxPort+"/videosource" |
| | | NgxMap[si.ServerId] = "http://"+si.NgxIp+":"+si.NgxPort+"/videosource" |
| | | } |
| | | } |