dysign

package
v0.0.0-...-ddda8a2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 6 Imported by: 0

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

func TimestampToUnixSec(timestamp string) (tusec int64, err error)

TimestampToUnixSec convert timestamp to seconds in unix format

@return tusec int64 : seconds in unix format @return err error : error

Types

This section is empty.

Jump to

Keyboard shortcuts

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