token

package
v0.0.0-...-ab065fd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

@Time : 2020/4/19 14:28 @Author : liangjiefan

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignToken

func SignToken(c Context) (tokenString string, err error)

Types

type Context

type Context struct {
	Uid string `json:"uid"`
}

func Parse

func Parse(tokenString string, secret string) (*Context, error)

func ParseRequest

func ParseRequest(token string) (*Context, error)

type Token

type Token struct {
	JwtKey  string
	JwtTime int
}

Jump to

Keyboard shortcuts

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