| | |
| | | "\"_source\":[\"id\"]" + |
| | | "}" |
| | | wg.Add(1) |
| | | go func() { |
| | | go func(reqParam string) { |
| | | defer wg.Done() |
| | | |
| | | //fmt.Println(url) |
| | | //fmt.Println(prama) |
| | | buf, err := EsReq("POST", url, []byte(prama)) |
| | | buf, err := EsReq("POST", url, []byte(reqParam)) |
| | | |
| | | if err != nil { |
| | | fmt.Println("http request videoUrlInfo info is err!") |
| | |
| | | return |
| | | } |
| | | for _, source := range sources["sourcelist"].([]map[string]interface{}) { |
| | | lock.Lock() |
| | | capturetable = append(capturetable, source["id"].(string)) |
| | | lock.Unlock() |
| | | } |
| | | |
| | | scroll_id := sources["scroll_id"].(string) |
| | |
| | | next_scroll_id = nextSources["scroll_id"].(string) |
| | | } |
| | | |
| | | }() |
| | | }(prama) |
| | | } |
| | | wg.Wait() |
| | | |