Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientIp ¶
ClientIp 尽最大努力实现获取客户端 IP 的算法。 解析 X-Real-IP 和 X-Forwarded-For 以便于反向代理(nginx 或 haproxy)可以正常工作。
func ExternalIp ¶ added in v1.0.31
func GetRandomUserAgentMobile ¶ added in v1.0.31
func GetRandomUserAgentMobile() string
GetRandomUserAgentMobile 获取用户UA
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.