token

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(secret string) string

New returns a new token by given secret key.

func NewSecret

func NewSecret() string

NewSecret creates a new secret key.

func Verify

func Verify(secret, token string) bool

Verify checks if the given token is valid for the given secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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