//
pkg.gl
Category
github.com/unit-io/unitdb
uid
package
0.2.0
Repository:
https://github.com/unit-io/unitdb.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
2
Files
36 SLOC
#
Functions
NewApoch
NewApoch creates an appoch to generate unique id.
NewLID
NewLID generates a new, process-wide unique ID.
NewUnique
NewUnique return unique value to use generating unique id.
Time
Time returns time portion of ID.
#
Constants
Offset
Offset is used to create new apoch from current time.
#
Variables
Next
Next is the next identifier.
#
Type aliases
LID
LID represents a process-wide unique ID.