generator

package
v0.0.0-...-7261592 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultUidGenerator

type DefaultUidGenerator struct {
	TimeBits   int
	WorkerBits int
	SeqBits    int
	EpochStr   string
	// contains filtered or unexported fields
}

func NewDefaultUidGenerator

func NewDefaultUidGenerator() *DefaultUidGenerator

func (*DefaultUidGenerator) GetUID

func (generator *DefaultUidGenerator) GetUID() (uint64, error)

func (*DefaultUidGenerator) ParseUID

func (generator *DefaultUidGenerator) ParseUID(uid uint64) string

Jump to

Keyboard shortcuts

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