uuid

command module
v0.0.0-...-ef50a8d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

uuid server

特性:

  • 支持uuid 的生成
  • 全局唯一
  • 可通过配置文件,flag 配置
  • 可通过本地手动配置唯一 nodeId
  • 可通过redis 配置全局唯一 NodeId

配置文件

通过配置这些字段可以控制 uuid 的组成部分

[jupiter.server.uuid]
    epoch = 1288834974657
    nodeBits = 10
    stepBits = 12
    nodeId = 1
    enableRedis = true  # 通过redis 来配置NodeId,配置文件的NodeId将无效

通过这这属性来配置redis的地址

[jupiter.redis.uuid]
    addrs = ["127.0.0.1:6379"]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
gen
internal
tests
e2e

Jump to

Keyboard shortcuts

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