Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisClient *redis.Client
Functions ¶
func GetRedisClient ¶
func GetRedisClient() *redis.Client
func Int63n ¶
Int63n returns, as an int64, a non-negative pseudo-random number in [0,n). It panics if n <= 0.
func Intn ¶
Intn returns, as an int, a non-negative pseudo-random number in [0,n). It panics if n <= 0.
func RandomSlot ¶
func RandomSlot() int
func Seed ¶
func Seed(n int64)
Seed uses the provided seed value to initialize the default Source to a deterministic state. If Seed is not called, the generator behaves as if seeded by Seed(1).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.