package
0.0.0-20200811035146-68579e179b68
Repository: https://github.com/arden/wechat.git
Documentation: pkg.go.dev

# Functions

AESCBCDecrypt aes-cbc decryption with PKCS#7 unpadding.
AESCBCEncrypt aes-cbc encryption with PKCS#7 padding.
DecodeBytesToUint32 从 4 字节的网络字节序里解析出整数 uint32.
EncodeUint32ToBytes 把整数 uint32 格式化成 4 字节的网络字节序.
FormatMap2XML format map to xml.
Hash Generate a hash value, expects: MD5, SHA1, SHA224, SHA256, SHA384, SHA512.
HMAC Generate a keyed hash value, expects: MD5, SHA1, SHA224, SHA256, SHA384, SHA512.
MD5 calculate the md5 hash of a string.
NewHTTPClient returns a new http client.
NonceStr 随机字符串.
ParseXML2Map parse xml to map.
PKCS7Padding PKCS#7 padding.
PKCS7UnPadding PKCS#7 unpadding.
RandomStr 随机字符串.
RSADecrypt rsa decryption with private key.
RSAEncrypt rsa encryption with public key.
SHA1 calculate the sha1 hash of a string.
WithHTTPDefaultTimeout specifies the `DefaultTimeout` to http client.
WithHTTPDialFallbackDelay specifies the `FallbackDelay` to net.Dialer.
WithHTTPDialKeepAlive specifies the `KeepAlive` to net.Dialer.
WithHTTPDialTimeout specifies the `DialTimeout` to net.Dialer.
WithHTTPExpectContinueTimeout specifies the `ExpectContinueTimeout` to http client.
WithHTTPIdleConnTimeout specifies the `IdleConnTimeout` to http client.
WithHTTPMaxConnsPerHost specifies the `MaxConnsPerHost` to http client.
WithHTTPMaxIdleConns specifies the `MaxIdleConns` to http client.
WithHTTPMaxIdleConnsPerHost specifies the `MaxIdleConnsPerHost` to http client.
WithHTTPTLSConfig specifies the `TLSClientConfig` to http client.
WithHTTPTLSHandshakeTimeout specifies the `TLSHandshakeTimeout` to http client.
WithRequestClose specifies close the connection after replying to this request (for servers) or after sending this request and reading its response (for clients).
WithRequestCookies specifies the cookies to http request.
WithRequestHeader specifies the headers to http request.
WithRequestTimeout specifies the timeout to http request.

# 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
No description provided by the author
No description provided by the author

# Variables

BufPool buffer pool.
DefaultHTTPClient default http client.
No description provided by the author

# Structs

HTTPClient http client.

# Interfaces

HTTPClientOption configures how we set up the http client.
HTTPRequestOption configures how we set up the http request.

# Type aliases

CDATA XML CDATA section which is defined as blocks of text that are not parsed by the parser, but are otherwise recognized as markup.
No description provided by the author
WXML deal with xml for wechat.
X is a convenient alias for a map[string]interface{}.