# Functions
AliyunSigner AliyunSigner.
Get the finalized value for the "Authorization" header.
No description provided by the author
BaiduSigner set Authorization header.
CanonicalHeaders.
CanonicalQueryString.
Build a CanonicalRequest from a regular request string
CanonicalRequest =
HTTPRequestMethod + '\n' + CanonicalURI + '\n' + CanonicalQueryString + '\n' + CanonicalHeaders + '\n' + SignedHeaders + '\n' + HexEncode(Hash(RequestPayload)).
CanonicalURI returns request uri.
CreateHTTPClient Create Default HTTP Client.
CreateNoProxyHTTPClient Create NoProxy HTTP Client.
GenerateToken 生成Token.
GetConfigFilePath 获得配置文件路径.
GetConfigFilePathDefault 获得默认的配置文件路径.
GetHTTPResponse 处理HTTP结果,返回序列化的json.
GetHTTPResponseOrg 处理HTTP结果,返回byte.
GetRequestIPStr get IP string from request.
HashPassword 密码哈希.
HexEncodeSHA256Hash returns hexcode of sha256.
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
IsHashedPassword 是否是哈希密码.
IsPrivateNetwork 是否为私有地址 https://en.wikipedia.org/wiki/Private_network.
IsRunInDocker 是否在docker中运行.
No description provided by the author
No description provided by the author
LookupHost looks up the host based on the given URL using the dialer.Resolver.
OpenExplorer 打开本地浏览器.
Ordinal returns the ordinal format of the given number.
PasswordOK 检查密码.
RequestPayload.
SetDNS sets the dialer.Resolver to use the given DNS server.
SetInsecureSkipVerify 将所有 http.Transport 的 InsecureSkipVerify 设置为 true.
SignedHeaders.
Create the HWS Signature.
SplitLines splits a string into lines by '\r\n' or '\n'.
Create a "String to Sign".
TencentCloudSigner 腾讯云签名方法 v3 https://cloud.tencent.com/document/api/1427/56189#Golang.
Wait blocks until the Internet is connected.
WriteString creates a new string using [strings.Builder].
# 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
DockerEnvFile Docker容器中包含的文件.
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
# Variables
BackupDNS will be used if DNS error occurs.
No description provided by the author