platform

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAlive added in v1.4.4

func CheckAlive(httpClient *http.Client) (bool, error)

func CheckClient added in v1.3.7

func CheckClient(httpClient *http.Client) bool

通过模拟客户端访问检查app可用性

func CheckCloudflare

func CheckCloudflare(httpClient *http.Client) (bool, error)

弃用,暂时保留

func CheckCookies added in v1.3.7

func CheckCookies(httpClient *http.Client) bool

通过检查cookies判断网络访问

func CheckDisney

func CheckDisney(httpClient *http.Client) (bool, error)

func CheckIPRisk

func CheckIPRisk(httpClient *http.Client, ip string) (string, error)

func CheckNetflix

func CheckNetflix(httpClient *http.Client) (bool, error)

func CheckOpenAI added in v1.3.7

func CheckOpenAI(httpClient *http.Client) (bool, bool)

1.如果全部通过,ChatGPT客户端可正常使用,res.Openai = true,tag为"GPT⁺" 2.如果只通过cookies检测 或 client检测,res.OpenaiWeb = true,tag为"GPT" 经在Windows和ios客户端测试,如果仅通过一项检测,客户端很大概率不能使用,但web端很大概率可以使用。所以如果全部通过添加了一个角标"⁺",保留仅通过一项检测的tag为"GPT",web端用户几乎不需要发现标签变化。

func CheckSpeed

func CheckSpeed(httpClient *http.Client, bucket *ratelimit.Bucket, bytesCounter *uint64) (int, int64, error)

func CheckTikTok

func CheckTikTok(httpClient *http.Client) (string, error)

func CheckYoutube

func CheckYoutube(httpClient *http.Client) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL