services

package
v0.0.0-...-bdd2e6f Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(c *gin.Context)

func ExtractToken

func ExtractToken(tok string) string

func Home

func Home(c *gin.Context)

home

func KeyFunc

func KeyFunc(token *jwt.Token) (interface{}, error)

func NewRouter

func NewRouter() *gin.Engine

func NewServer

func NewServer() *http.Server

func PostSessions

func PostSessions(c *gin.Context)

PostSessions 表示创建/添加一个会话, 实际上是为客户端生成一个 token.

Types

This section is empty.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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