utils

package
v0.0.0-...-2604013 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiKeyGet

func ApiKeyGet(mapParams map[string]string, strRequestPath string) string

func ApiKeyPost

func ApiKeyPost(mapParams map[string]string, path string, urlValues url.Values) string

func ComputeHmac256

func ComputeHmac256(strMessage string, strSecret string) string

ComputeHmac256 compute HMAC SHA256

func HttpGetRequest

func HttpGetRequest(strUrl string) string

func HttpPostRequest

func HttpPostRequest(strUrl string, mapParams map[string]string) string

func Map2UrlQueryBySort

func Map2UrlQueryBySort(mapParams map[string]string) string

Map2UrlQueryBySort format map params to a string

func Sign

func Sign(mapParams map[string]string, method, hostname, path, secretKey string) string

Sign sign the request data

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL