idg

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIotIdSerial

func NewIotIdSerial(devId, devArea int64) (*iotIdSerial, error)

func NewSnowflaker

func NewSnowflaker(generatorId int64) (*snowflaker, error)

func SetV1InterfaceName

func SetV1InterfaceName(name string)

设置 uuidV1 需要的网卡名称

func UuidV1

func UuidV1() (mu uuid)

生成uuidV1需要的16位byte数

func UuidV4

func UuidV4() (r16 uuid)

生成uuidV4需要的16位byte随机数

Types

This section is empty.

Jump to

Keyboard shortcuts

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