Package Usage: go: github.com/rs/xid
Package xid is a globally unique id generator suited for web scale
Xid is using Mongo Object ID algorithm to generate globally unique ids:
https://docs.mongodb.org/manual/reference/object-id/
The binary representation of the id is compatible with Mongo 12 bytes Object IDs.
The string representation is using base32 hex (w/o padding) for better space efficiency
when stored in that form (20 bytes). The hex variant of base32 is used to retain the
sortable property of the id.
Xid doesn't use base64 because case sensitivity and the 2 non alphanum chars may be an
issue when transported as a string between various systems. Base36 wasn't retained either
because 1/ it's not standard 2/ the resulting size is not predictable (not bit aligned)
and 3/ it would not remain sortable. To validate a base32 `xid`, expect a 20 chars long,
all lowercase sequence of `a` to `v` letters and `0` to `9` numbers (`[0-9a-v]{20}`).
UUID is 16 bytes (128 bits), snowflake is 8 bytes (64 bits), xid stands in between
with 12 bytes with a more compact string representation ready for the web and no
required configuration or central generation server.
Features:
Best used with xlog's RequestIDHandler (https://godoc.org/github.com/rs/xlog#RequestIDHandler).
References:
7 versions
Latest release: environ 2 ans ago
4 749 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/rs/xid
Dependent Repos 9
1024pix/steampipe-plugin-metabase
Use SQL to query databases, tables, permissions and more from MetabaseSize: 1,22 Mo - Last synced: 7 jours ago - Pushed: 30 jours ago

snps-public/cephfs-foldersize-exporter
Prometheus exporter for CephFS various folder sizesLast synced: 8 mois ago - Pushed: 12 mois ago
snps-public/rest-samba-config
Rest API used to view (and maybe at some point edit) Samba configurationLast synced: 8 mois ago - Pushed: 12 mois ago
tchapgouv/matrix-media-repo Fork of t2bot/matrix-media-repo
Matrix media repository with multi-domain in mind.Size: 6,2 Mo - Last synced: 4 jours ago - Pushed: presque 2 ans ago

1024pix/go-metabase Fork of grokify/go-metabase
Go Client SDK for Metabase - https://github.com/metabase/metabaseSize: 361 ko - Last synced: 7 jours ago - Pushed: 8 mois ago

1024pix/goauth Fork of grokify/goauth
Utility libraries for Go (aka Golang) API auth including OAuth 2, JWT, TLS Client Authentication and Basic Auth.Size: 737 ko - Last synced: 7 jours ago - Pushed: environ un an ago

signaux-faibles/opensignauxfaibles Fork of entrepreneur-interet-general/opensignauxfaibles
Plateforme de détection des entreprises fragilesSize: 36,6 Mo - Last synced: 4 jours ago - Pushed: 4 mois ago

SocialGouv/k8s-csi-s3 Fork of yandex-cloud/k8s-csi-s3
GeeseFS-based CSI for mounting S3 buckets as PersistentVolumesSize: 231 ko - Last synced: 3 jours ago - Pushed: environ un an ago

InseeFrLab/onyxia-onboarding-operator
An operator for onyxia's onboarding tasksSize: 71,3 ko - Last synced: 4 jours ago - Pushed: plus d'un an ago

InseeFrLab/s3-operator
A simple operator to dynamically create S3 buckets and policiesSize: 332 ko - Last synced: 4 jours ago - Pushed: 5 jours ago
