proxy.golang.org : github.com/mustafaturan/monoflake
Package monoflake is a highly scalable, single/multi node, human-readable, predictable and incremental 64 bits (8bytes) unique id generator The `monoflake` package provides sequences based on the `monotonic` time which represents the absolute elapsed wall-clock time since some arbitrary, fixed point in the pasmf. It isn't affected by changes in the system time-of-day clock. Epoch time value opens space for time value by subtracting the given value from the time sequence. It comes with `String()` method which encodes the ids into base62 as string and allows padded with zeros to 11 bytes. `Bytes()` method allows converting the id directly into static 11 bytes. The `monoflake` package can be used on single/multiple nodes without the need for machine coordination. It uses configured node identifier to generate ids by attaching the node identifier to the end of the sequences. Zero allocation magic with blazing fast results.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/mustafaturan/monoflake
Keywords:
snowflake
, zero-alloc
, zero-allocation
License: Apache-2.0
Latest release: 12 months ago
First release: over 1 year ago
Namespace: github.com/mustafaturan
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 23 days ago