Documentation ¶
Index ¶
- func AutoIncrementInt() int
- func AutoIncrementInt32() int32
- func AutoIncrementInt64() int64
- func AutoIncrementString() string
- func AutoIncrementUint32() uint32
- func AutoIncrementUint64() uint64
- func Get() int64
- func GetWith(name any) int64
- func RegNameSpace(name any)
- func Reset()
- func ResetWith(name any)
- func SonyflakeID() int64
- func SonyflakeIDE() (int64, error)
- func SonyflakeSetting(settings sonyflake.Settings)
- func UnRegNameSpace(name any)
- type Once
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoIncrementInt32 ¶ added in v0.3.4
func AutoIncrementInt32() int32
AutoIncrementInt32 获取一个自增的 int32 值
func AutoIncrementInt64 ¶ added in v0.3.4
func AutoIncrementInt64() int64
AutoIncrementInt64 获取一个自增的 int64 值
func AutoIncrementString ¶ added in v0.3.4
func AutoIncrementString() string
AutoIncrementString 获取一个自增的字符串
func AutoIncrementUint32 ¶ added in v0.3.4
func AutoIncrementUint32() uint32
AutoIncrementUint32 获取一个自增的 uint32 值
func AutoIncrementUint64 ¶ added in v0.3.4
func AutoIncrementUint64() uint64
AutoIncrementUint64 获取一个自增的 uint64 值
func SonyflakeSetting ¶
SonyflakeSetting 配置雪花id生成策略
func UnRegNameSpace ¶ added in v0.0.20
func UnRegNameSpace(name any)
UnRegNameSpace 解除注销特定命名空间的唯一标识符
Types ¶
Click to show internal directories.
Click to hide internal directories.