signature

package
v0.0.0-...-66cf1cd Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package signature @program: gin-template @author: [lliuhuan](https://github.com/lliuhuan) @create: 2024-07-02 22:16

Package signature @program: gin-template @author: [lliuhuan](https://github.com/lliuhuan) @create: 2024-07-02 22:17

Package signature @program: gin-template @author: [lliuhuan](https://github.com/lliuhuan) @create: 2024-07-02 22:17

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signature

type Signature interface {

	// Generate 生成签名
	Generate(path string, method string, params url.Values) (authorization, date string, err error)

	// Verify 验证签名
	Verify(authorization, date string, path string, method string, params url.Values) (ok bool, err error)
	// contains filtered or unexported methods
}

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