Versions in this module Expand all Collapse all v1 v1.0.1 May 15, 2020 v1.0.0 May 6, 2020 Changes in this version + func AESDecryptMsg(ciphertext []byte, aesKey []byte) (random, rawXMLMsg, appID []byte, err error) + func AESEncryptMsg(random, rawXMLMsg []byte, appID string, aesKey []byte) (ciphertext []byte) + func DecryptMsg(appID, encryptedMsg, aesKey string) (random, rawMsgXMLBytes []byte, err error) + func EncryptMsg(random, rawXMLMsg []byte, appID, aesKey string) (encrtptMsg []byte, err error) + func GetCurrTs() int64 + func HTTPGet(uri string) ([]byte, error) + func HTTPGetV2(uri string, client *http.Client) ([]byte, error) + func MD5Sum(txt string) (sum string) + func NewTLSHttpClient(certPEMBlock, keyPEMBlock []byte) (httpClient *http.Client, err error) + func NewTLSHttpClientByFile(certFile, keyFile string) (httpClient *http.Client, err error) + func PostFile(fieldname, filename, uri string) ([]byte, error) + func PostFileV2(fieldname, filename string, fileReader io.Reader, uri string) (respBody []byte, err error) + func PostJSON(uri string, obj interface{}) ([]byte, error) + func PostJSONWithRespContentType(uri string, obj interface{}) ([]byte, string, error) + func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error) + func PostXML(uri string, obj interface{}, xmlHead string, client *http.Client) ([]byte, error) + func RandomStr(length int) string + func Signature(params ...string) string + type Decryptor struct + Err error + func NewDecryptor(appID, sessionKey string) (*Decryptor, error) + func (decryptor *Decryptor) Profile(encryptedData, iv string) *mini_message.Profile + func (decryptor *Decryptor) Run(encryptedData, iv string) *mini_message.Run + func (decryptor *Decryptor) Share(encryptedData, iv string) *mini_message.Share + type MultipartFormField struct + Fieldname string + Filename string + IsFile bool + Value []byte