services

package
v0.0.0-...-7ee9602 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func SignerFromBytes

func SignerFromBytes(privateKey []byte) (*Signer, error)

func SignerFromString

func SignerFromString(privateKey string) (*Signer, error)

func (*Signer) Sign

func (s *Signer) Sign(url *url.URL, expireAfter time.Duration) error

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

func VerifierFromBytes

func VerifierFromBytes(publicKey []byte) (*Verifier, error)

func VerifierFromString

func VerifierFromString(publicKey string) (*Verifier, error)

func (*Verifier) Verify

func (v *Verifier) Verify(url *url.URL) (bool, error)

Jump to

Keyboard shortcuts

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