token

package
v0.0.0-...-074ff86 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(userId int) string

func Clear

func Clear()

func Remove

func Remove(t string)

Types

type Model

type Model struct {
	models.Model
	Token       string     `json:"token"`
	AdminUserId int        `json:"admin_user_id"`
	ExpireTime  utils.Time `json:"expire_time"`
}

func GetByToken

func GetByToken(token string) (model *Model, err error)

func (*Model) IsExpire

func (m *Model) IsExpire() bool

Jump to

Keyboard shortcuts

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