coder

package
v0.0.0-...-c182ff6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginNum = 3
	TokenTTL = 2 * 3600
)

Variables

This section is empty.

Functions

func Decode

func Decode(req request.Decode, secret string) (*jwt.Token, error)

func Encode

func Encode(req request.Encode, secret string) (string, error)

Types

type CustomClaim

type CustomClaim struct {
	Device    string `json:"device"`
	Unique    string `json:"unique"`
	Timestamp int64  `json:"timestamp"`
	Addr      string `json:"addr"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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