Versions in this module Expand all Collapse all v1 v1.0.2 Mar 5, 2021 v1.0.1 Jul 2, 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 HTTPPost(uri string, data string) ([]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{}, client *http.Client) ([]byte, error) + func RandomStr(length int) string + func Signature(params ...string) string + type MultipartFormField struct + Fieldname string + Filename string + IsFile bool + Value []byte