kid

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() (ips []string)

GetLocalIP ...

func GetLocalMac

func GetLocalMac() (macAddrs []string)

GetLocalMac ...

func GetMustMachineCode

func GetMustMachineCode() string

GetMustMachineCode 获取设备机器码, 4位 有限使用IP后2位, 不存在使用Mac后2位, 不存在使用“0000”

func GetMustMachineCode2

func GetMustMachineCode2() string

GetMustMachineCode2 获取设备机器码 4位

func GetMustOneLocalIP

func GetMustOneLocalIP() string

GetMustOneLocalIP ...

func GetMustOneLocalMac

func GetMustOneLocalMac() string

GetMustOneLocalMac ...

func NewAppKID

func NewAppKID() string

NewAppKID ... 应用(24) a<助记符3位><时间编码8位><机器码4位><随机码8位>

func NewIdxCode

func NewIdxCode(size int, idx int64, x62 bool) string

NewIdxCode ... 编码

func NewNowCode

func NewNowCode(size int, x64 bool) string

NewNowCode 获取当前时间编码

func NewOrgKID

func NewOrgKID(id int64) string

NewOrgKID ... 租户(32) t<助记符3位><时间编码8位><ID编码8位><机器码4位><随机码8位>

func NewRandomCode

func NewRandomCode(size int, x64 bool) string

NewRandomCode ...

func NewRoleKID

func NewRoleKID() string

NewRoleKID ... 角色(24) r<助记符3位><时间编码8位><机器码4位><随机码8位>

func NewSequenceCode

func NewSequenceCode(size int, x62 bool) string

NewSequenceCode ... 排序性质

func NewUsrKID

func NewUsrKID(id int64) string

NewUsrKID ... 用户(36) u<助记符3位><时间编码8位><ID编码8位><机器码4位><随机码12位>

Types

This section is empty.

Jump to

Keyboard shortcuts

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