Documentation ¶
Index ¶
- func DownLoadFilesPost(urlStr string, headMaps map[string]string, data []byte) ([]byte, string, string)
- func GetFileHash(path string) (hash string)
- func GetSignByMap(headMap map[string]string, timestamp string, appSecret string) string
- func HmacSha256(data string, secret []byte) string
- func HmacSha256byte(data string, secret string) []byte
- func PostWithFormData(method, url string, postData *map[string]string)
- func SendPost(urlStr string, headMaps map[string]string, data []byte) ([]byte, string)
- func Sha256(src string) string
- func SortMapForSign(headMap map[string]string) string
- func UploadFilePost(urlStr string, headMaps map[string]string, file []byte, bizContent string, ...) ([]byte, string, error)
- type ObjectId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownLoadFilesPost ¶
func DownLoadFilesPost(urlStr string, headMaps map[string]string, data []byte) ([]byte, string, string)
DownLoadFilesPost 下载文件HttpPost
func GetSignByMap ¶
GetSignByMap 计算签名参数
func PostWithFormData ¶
func SortMapForSign ¶
SortMapForSign 将map key进行排序拼接
Types ¶
Click to show internal directories.
Click to hide internal directories.