package
0.0.0-20240925013810-9facf9ceda6e
Repository: https://github.com/zhujq/vercel.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ClientIP 尽最大努力实现获取客户端 IP 的算法。 解析 X-Real-IP 和 X-Forwarded-For 以便于反向代理(nginx 或 haproxy)可以正常工作。.
ClientPublicIP 尽最大努力实现获取客户端公网 IP 的算法。 解析 X-Real-IP 和 X-Forwarded-For 以便于反向代理(nginx 或 haproxy)可以正常工作。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HasLocalIP 检测 IP 地址是否是内网地址 通过直接对比ip段范围效率更高,详见:https://github.com/thinkeridea/go-extend/issues/2.
HasLocalIPAddr 检测 IP 地址字符串是否是内网地址.
HasLocalIPddr 检测 IP 地址字符串是否是内网地址 Deprecated: 此为一个错误名称错误拼写的函数,计划在将来移除,请使用 HasLocalIPAddr 函数.
HTTPGet get 请求.
No description provided by the author
HTTPPost post 请求.
IP2Long 把net.IP转为数值.
IPString2Long 把ip字符串转为数值.
No description provided by the author
Long2IP 把数值转为net.IP.
Long2IPString 把数值转为ip字符串.
No description provided by the author
PostJSON post json 数据请求.
No description provided by the author
No description provided by the author
RemoteIP 通过 RemoteAddr 获取 IP 地址, 只是一个快速解析方法。.
No description provided by the author

# Constants

中国广电.
广电虚拟运营商.
No description provided by the author
中国移动.
移动虚拟运营商.
No description provided by the author
中国电信.
电信虚拟运营商.
中国联通.
联通虚拟运营商.
No description provided by the author
No description provided by the author
const GetTokenUrl = "http://token.zhujq.ga:8880/token?appid=wxf183d5e1fe4d5204" const GetMaterialSum = "https://api.weixin.qq.com/cgi-bin/material/get_materialcount?access_token=" const GetMaterial = "https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=" const GetMediainfo = "https://api.weixin.qq.com/cgi-bin/material/get_material?access_token=".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
const GetIndexUrl = "https://wechat-index-wechat-zhujq.cloud.okteto.net/?keyword=" 把index放在同一个docker中部署.

# Variables

No description provided by the author
const RedisDB = "wechat-redis:6379" const RedisDB = "redis-12069.c1.us-east1-2.gce.cloud.redislabs.com:12069" const RedisPWD ="Juju1234".
const RedisDB = "wechat-redis:6379" const RedisDB = "redis-12069.c1.us-east1-2.gce.cloud.redislabs.com:12069" const RedisPWD ="Juju1234".

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author