Documentation ¶
Index ¶
Constants ¶
View Source
const (
SignatureMethod_HMAC_SHA1 = "HMAC-SHA1"
)
Variables ¶
This section is empty.
Functions ¶
func GetHmacsha1Signature ¶
func GetHmacsha1Signature(toSignedParams map[string]string, secret string) ( stringToSign, signature string)
GetHmacsha1Signature get signature according to signedParams and secret
@param toSignParams : params which need to be signed @param secret : AccessKeySecret @return the signature
func GetTimestamp ¶
func GetTimestamp() (timeStr string)
GetTimestamp get timestamp
use ISO8601 standard, UTC time and timezone flag, format is yyyy-MM-ddTHH:mm:ssZ
@return the timestamp
func TimestampToUnixSec ¶
TimestampToUnixSec convert timestamp to seconds in unix format
@return tusec int64 : seconds in unix format @return err error : error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.