httpsigs

package
v1.23.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 6 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 struct {
	Token     string
	Duration  int64
	WhiteList []string
}

func GetSigner

func GetSigner() *Signer

func (*Signer) AddWhiteList

func (s *Signer) AddWhiteList(path string)

func (*Signer) IsWhiteList

func (s *Signer) IsWhiteList(path string) bool

func (*Signer) Sign

func (s *Signer) Sign(req *http.Request, prefix string)

func (*Signer) Validate

func (s *Signer) Validate(req *http.Request) error

Jump to

Keyboard shortcuts

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