Documentation
¶
Index ¶
- func CheckAlive(httpClient *http.Client) (bool, error)
- func CheckClient(httpClient *http.Client) bool
- func CheckCloudflare(httpClient *http.Client) (bool, error)
- func CheckCookies(httpClient *http.Client) bool
- func CheckDisney(httpClient *http.Client) (bool, error)
- func CheckGemini(httpClient *http.Client) (string, error)
- func CheckIPRisk(httpClient *http.Client, ip string) (string, error)
- func CheckNetflix(httpClient *http.Client) (bool, error)
- func CheckOpenAI(httpClient *http.Client) (bool, bool)
- func CheckSpeed(httpClient *http.Client, bucket *ratelimit.Bucket, bytesCounter *uint64) (int, int64, error)
- func CheckTikTok(httpClient *http.Client) (string, error)
- func CheckYoutube(httpClient *http.Client) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCookies ¶ added in v1.3.7
通过检查cookies判断网络访问
func CheckGemini ¶
func CheckOpenAI ¶ added in v1.3.7
1.如果全部通过,ChatGPT客户端可正常使用,res.Openai = true,tag为"GPT⁺" 2.如果只通过cookies检测 或 client检测,res.OpenaiWeb = true,tag为"GPT" 经在Windows和ios客户端测试,如果仅通过一项检测,客户端很大概率不能使用,但web端很大概率可以使用。所以如果全部通过添加了一个角标"⁺",保留仅通过一项检测的tag为"GPT",web端用户几乎不需要发现标签变化。
func CheckSpeed ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.