urlsign

package module
v0.0.0-...-de74ca8 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

README

urlsign

urlsign is a simple HMAC-based implementation for URL signing and verification

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOpaqueURL         = stackerr.New("can't sign or verify opaque URL")
	ErrSignatureMismatch = stackerr.New("signature mismatch")
)

Functions

This section is empty.

Types

type Signer

type Signer struct {
	Key       []byte
	ParamName string
}

func (Signer) SignURL

func (s Signer) SignURL(u *url.URL) error

func (Signer) VerifyReq

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

func (Signer) VerifyURL

func (s Signer) VerifyURL(u *url.URL) error

Jump to

Keyboard shortcuts

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