-
Notifications
You must be signed in to change notification settings - Fork 0
geekfghuang/snowflake
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A distributed, thread safe and self increasing ID generator based on the theory of Twitter-Snowflake 64 bit self increasing ID algorithm Usage: http: ./uid-http ../conf/worker.xml application: go get github.com/geekfghuang/snowflake func main() { worker, err := NewWorker(0) if err != nil { // ... } id, err := worker.NextId() // ... } Attention!!! different worker, different workerId
About
基于 Twitter-Snowflake 64位自增ID算法理论实现的分布式、线程安全自增ID生成器
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published