No description
Find a file
2019-09-25 10:07:56 +00:00
lib Rename FlakeID -> FlakeId 2019-09-24 18:05:31 +07:00
test Rename FlakeID -> FlakeId 2019-09-24 18:05:31 +07:00
.formatter.exs ️ Everything starts with a #cofe 2019-09-18 13:36:48 +07:00
.gitignore ️ Everything starts with a #cofe 2019-09-18 13:36:48 +07:00
.gitlab-ci.yml Add CI configuration 2019-09-18 23:05:24 +07:00
CHANGELOG.md Update CHANGELOG.md 2019-09-25 10:07:56 +00:00
LICENSE Add LICENSE 2019-09-18 20:42:51 +07:00
mix.exs Rename FlakeID -> FlakeId 2019-09-24 18:05:31 +07:00
mix.lock Replace *_base62 functions with base62 hex package 2019-09-20 13:41:18 +07:00
README.md Rename FlakeID -> FlakeId 2019-09-24 18:05:31 +07:00

❄ FlakeId

Decentralized, k-ordered ID generation service

Installation

Add flake_id to your list of dependencies in mix.exs:

def deps do
  [
    {:flake_id, "~> 0.1.0"}
  ]
end

Usage

iex> FlakeId.get()
"9n3171dJZpdD77K3DU"

See https://hexdocs.pm/flake_id for the complete documentation.

With Ecto

It is possible to use FlakeId with Ecto. See FlakeId.Ecto.Type documentation for detailed instructions.

Prior Art

  • flaky, released under the terms of the Truly Free License,
  • Flake, Copyright 2012, Boundary, Apache License, Version 2.0

Copyright © 2017-2019 Pleroma Authors

FlakeId source code is licensed under the GNU LGPLv3 License.