Main - kunkka2/get-socks-change-file GitHub Wiki

Dependencies

  • use
    • std::fs::File
    • std::time::Duration
    • std::sync::Arc
    • reqwest::Proxy
    • serde::{Serialize, Deserialize}
    • tokio
      • runtime
      • task
      • sync::{Mutex}
    • futures::future::join_all

Test Dependencies

Struct

  • ProxySource

    • socks_list_url: String
    • get_list_proxy: Option
  • TargetObj

    • target_path: String
    • target_start: String
  • Config

    • proxy_sources: Vec
    • check_url: String,
    • check_host: String,
    • host_dns: String,
    • timeout: u64,
    • targets: Vec,
  • Ipres

    • usetime:Duration
    • ipstr:String

Method main

  • main
  • async fn main_task
  • async fn get_socks_list(oneproxy: ProxySource) -> String
  • async fn req_check_speed(ipport: &str, config: &Config) -> Result<(), reqwest::Error>
  • fn modify_line(file_path: &str, ipok:&str, target_start:&str) -> io::Result<()>
---
title: main task
---
flowchart 
    id1[Read config.yaml]
    id2[loop config.proxy_sources]
    id3[get socks list]
    id4[filter out socks list]
    id5[req check sped]
    id6[find min time use]
    id7[loop modify target file ]
    id1 --> id2 --> id3 --> id4 --> id5 --> id6 --> id7
Loading
⚠️ **GitHub.com Fallback** ⚠️