unique

package
v6.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSnowflakeNode added in v6.3.0

func SetSnowflakeNode(node, epoch int64) error

SetSnowflakeNode Set snowflake node

Types

type ObjectID

type ObjectID = primitive.ObjectID

ObjectID Define alias

func NewObjectID

func NewObjectID() ObjectID

NewObjectID Create object id

type SnowflakeID

type SnowflakeID = snowflake.ID

SnowflakeID Define alias

func NewSnowflakeID

func NewSnowflakeID() SnowflakeID

NewSnowflakeID Create snowflake id

type UUID

type UUID = uuid.UUID

UUID Define alias

func MustUUID

func MustUUID() UUID

MustUUID Create uuid(Throw panic if something goes wrong)

func NewUUID

func NewUUID() (UUID, error)

NewUUID Create uuid

Jump to

Keyboard shortcuts

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