Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lensvol/dumbflake
https://github.com/lensvol/dumbflake
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lensvol/dumbflake
- Owner: lensvol
- License: mit
- Created: 2015-01-05T17:02:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-08T18:20:25.000Z (almost 10 years ago)
- Last Synced: 2024-05-02T04:08:34.378Z (8 months ago)
- Language: Go
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dumbflake
=========Simple UDP daemon to help with issuing monotonically increasing UID's for
newly registered users.Workflow
--------
1. Server receives UDP packet with login inside.
2. Server checks if there is a reserved ID for specified login.
2a. If there is a reservation, assign reserved ID and do not modify global counter.
2b. If there is no reservation found, increase global counter and assign increased value.
3. Server replies with UDP packet, structured as follows: ":\n"
Usage
-----dumbflake -port=19229 -bind=127.0.0.1