token

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(entityID string) (string, error)

TokenCreate - 通过 entityID 构建出一个 包含了 entityID 的 token

func Parse

func Parse(token string) (string, error)

TokenParse - 从被包装过的 token 中获取 entityID

Types

type Claims

type Claims struct {
	EntityID string
}

func (Claims) Valid

func (c Claims) Valid() error

Jump to

Keyboard shortcuts

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