token

package
v0.0.0-...-cb8cff3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2015 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(user *user.Model) *jwt.Token

New generate a new JWT token. The expiration date is defined by `tokenExpTime`

func Response

func Response(c *ctx.Context, rw http.ResponseWriter, token *jwt.Token) error

Types

type Renew

type Renew struct{}

func (*Renew) POST

func (r *Renew) POST(c *ctx.Context, rw http.ResponseWriter, req *http.Request) error

Jump to

Keyboard shortcuts

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