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: about 2 years 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 MB - Last synced: 7 days ago - Pushed: 29 days ago

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

1024pix/go-metabase Fork of grokify/go-metabase
Go Client SDK for Metabase - https://github.com/metabase/metabaseSize: 361 KB - Last synced: 7 days ago - Pushed: 8 months 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 KB - Last synced: 7 days ago - Pushed: about 1 year ago

signaux-faibles/opensignauxfaibles Fork of entrepreneur-interet-general/opensignauxfaibles
Plateforme de détection des entreprises fragilesSize: 36.6 MB - Last synced: 4 days ago - Pushed: 4 months ago

SocialGouv/k8s-csi-s3 Fork of yandex-cloud/k8s-csi-s3
GeeseFS-based CSI for mounting S3 buckets as PersistentVolumesSize: 231 KB - Last synced: 2 days ago - Pushed: about 1 year ago

InseeFrLab/onyxia-onboarding-operator
An operator for onyxia's onboarding tasksSize: 71.3 KB - Last synced: 3 days ago - Pushed: over 1 year ago

InseeFrLab/s3-operator
A simple operator to dynamically create S3 buckets and policiesSize: 332 KB - Last synced: 3 days ago - Pushed: 5 days ago
