AuthKey

package
v0.0.0-...-6755852 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKey

type AuthKey struct {
	AppKey    string
	AppSecret string
	Headers   map[string]string
}

func (AuthKey) CheckSignature

func (key AuthKey) CheckSignature(sign, method, date, resource string) (bool, error)

CheckSignature check sha1 hmac sum , Data format : Fri, 12 May 2017 08:10:09 +0000 , use `date -u -R` get time now in this format on linux

Jump to

Keyboard shortcuts

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