signauth

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer interface {
	// 计算签名, 并更新 r *http.Request
	// 注意: 调用 Sign() 方法后, 相应的 r *http.Request 已经更新, 无需再次更新
	Sign() (sign string, err error)
}

func NewSigner

func NewSigner(r *http.Request, key, secret string) (Signer, error)

type SortedURLValues

type SortedURLValues struct {
	url.Values
	// contains filtered or unexported fields
}

func NewSortedURLValues

func NewSortedURLValues(values url.Values) *SortedURLValues

func (*SortedURLValues) SortedKeyValues

func (sv *SortedURLValues) SortedKeyValues() []string

Jump to

Keyboard shortcuts

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