sign

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(secretKey string, opts ...Option) zeroapi.Handler

New 签名验证 由插件 middleware/must_param 确保 sign 存在

SecretKey 签名密钥

Types

type Option

type Option struct {
	// Enable 是否开启检测,默认 true
	Enable bool
	// SignName sign 的参数名称, 一般为 sign, 与 middleware/must-param 中一致
	SignName string
}

Option ..

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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