pathsigner

package
v0.0.0-...-2bcb355 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 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 PathSignatureValidator

type PathSignatureValidator interface {
	SignatureValid(u *url.URL) bool
}

type PathSigner

type PathSigner interface {
	Sign(path string, expires time.Time) string
}

type PathSignerValidator

type PathSignerValidator struct {
	Secret string
	Clock  clock.Clock
}

func (*PathSignerValidator) Sign

func (signer *PathSignerValidator) Sign(path string, expires time.Time) string

func (*PathSignerValidator) SignatureValid

func (signer *PathSignerValidator) SignatureValid(u *url.URL) bool

Jump to

Keyboard shortcuts

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