snowflake

command module
v0.1.3-0...-ff4d5da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 2 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Snowflake

雪花算法golang实现

说明

Twitter开源的雪花算法生成ID,每毫秒每个机器可生成4096个连续不重复ID。

Benchmark

Benchmark name COUNT ns/op
BenchmarkNewSnowflake-4 5000000 244 ns/op

工具

从 github.com/CyrivlClth/snowserver 可获取id生成器工作节点的服务。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
package serialnum get serial number from redis
package serialnum get serial number from redis
server
grpc command
grpc/service
package service
package service
Package snowflake 分布式ID雪花算法Golang实现 Powered by CyrivlClth
Package snowflake 分布式ID雪花算法Golang实现 Powered by CyrivlClth

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL