lib

package
v0.0.0-...-fc93b59 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SECRETKEY = "fuwujisuanyyds" // 密钥
)

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(user *UserInfo) (tokeness string, err error)

func GetFollowParameter

func GetFollowParameter(url string, key string) string

func GetUniqueID

func GetUniqueID() string

GetUniqueID 返回唯一哈希值

func ParseToken

func ParseToken(tokeness string) (err error)

func RemoveNonBmpUnicode

func RemoveNonBmpUnicode(str string) string

Types

type UserInfo

type UserInfo struct {
	Username string
	ID       uint64
}

Jump to

Keyboard shortcuts

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