noeq

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "20060102150405"

TimeFormat time format

Variables

This section is empty.

Functions

func GenID

func GenID() (id int64)

GenID 生成ID

func GenJWTMess

func GenJWTMess() string

GenJWTMess gen jwt mess

func GenRandStr

func GenRandStr(n int) string

GenRandStr 生成固定位数的随机字符串

func GenRangeID

func GenRangeID(num int64) (min, max int64)

GenRangeID 根据个数生成区间内最小和最大ID

func GenSalt

func GenSalt() string

GenSalt 生成盐

func GenUID

func GenUID() string

GenUID 生成字符串ID

func Init

func Init(workerID int64)

Init 初始化WorkerID

func ParseID

func ParseID(id int64) (wid, ms, seq int64)

ParseID 解析ID,还原出机器ID、时间、序号

Types

This section is empty.

Jump to

Keyboard shortcuts

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