package
0.0.0-20190416103724-ee7ecfed3662
Repository: https://github.com/gfandada/gserver.git
Documentation: pkg.go.dev
# Functions
And returns result of binary AND of two UUIDs.
Equal returns true if u1 and u2 equals, otherwise returns false.
FromBytes returns UUID converted from raw byte slice input.
FromBytesOrNil returns UUID converted from raw byte slice input.
FromString returns UUID parsed from string input.
FromStringOrNil returns UUID parsed from string input.
获取携程id.
构建一个新的并发限流器.
NewV1 returns UUID based on current timestamp and MAC address.
NewV2 returns DCE Security UUID based on POSIX UID/GID.
NewV3 returns UUID based on MD5 hash of namespace UUID and name.
NewV4 returns random generated UUID.
NewV5 returns UUID based on SHA-1 hash of namespace UUID and name.
Or returns result of binary OR of two UUIDs.
随机计算 方法调用者随机权重值为b1,权重池为b2 返回调用者的命中情况:true命中 false未命中 此方法不适用于有自定义的起始区域的数值命中.
随机从[b1,b2]中获取一个数值.
随机从[b1,b2]中获取n个数值.
No description provided by the author
No description provided by the author
# Constants
UUID DCE domains.
UUID DCE domains.
UUID DCE domains.
UUID layout variants.
UUID layout variants.
UUID layout variants.
UUID layout variants.
# Variables
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
The nil UUID is special form of UUID that is specified to have all 128 bits set to zero.
# Type aliases
UUID representation compliant with specification described in RFC 4122.