signature

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signature

type Signature interface {
	// Generate 生成签名
	Generate(params url.Values) (authorization, date string, err error)
	// Verify 验证签名
	Verify(authorization, date string, params url.Values) (ok bool, err error)
}

func New

func New(key, secret string, ttl time.Duration) Signature

Jump to

Keyboard shortcuts

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