secure_token

package
v0.0.0-...-6217932 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(in, verb string) (string, error)

Types

type SecureToken

type SecureToken struct {
	Verb    string
	Arg     string
	Expires time.Time
}

func DecodeSecureToken

func DecodeSecureToken(in string) (*SecureToken, error)

func NewSecureToken

func NewSecureToken(verb, arg string, ttl int64) *SecureToken

func (*SecureToken) Encode

func (s *SecureToken) Encode() string

Jump to

Keyboard shortcuts

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