Documentation ¶
Index ¶
Constants ¶
View Source
const ( PATH = "/seqs/" UUID_KEY = "/seqs/snowflake-uuid" BACKOFF = 100 // max backoff delay millisecond CONCURRENT = 128 // max concurrent connections to etcd UUID_QUEUE = 1024 // uuid process queue )
View Source
const ( TS_MASK = 0x1FFFFFFFFFF // 41bit SN_MASK = 0xFFF // 12bit MACHINE_ID_MASK = 0x3FF // 10bit )
Variables ¶
View Source
var (
Conf *idgenConfig
)
Functions ¶
func InitializeConfig ¶
func InitializeConfig() (err error)
func NewIDGenServer ¶
func NewIDGenServer() *idgenServer
Types ¶
Click to show internal directories.
Click to hide internal directories.