unique

package
v0.0.0-...-98849e2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSnowflakeNode

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