Documentation ¶
Index ¶
- Constants
- func CityHash32(s []byte, length uint32) uint32
- func CityHash64(s []byte, length uint32) uint64
- func CityHash64WithSeed(s []byte, length uint32, seed uint64) uint64
- func CityHash64WithSeeds(s []byte, length uint32, seed0, seed1 uint64) uint64
- func CreateSessionId(sessionId string) string
- func GetNowDateTime() string
- func GetRandomToken(length int) string
- func GetSessionIdByUserId(userId int) string
- func GetSessionName(sessionId string) string
- func GetSnowflakeId() string
- func IsLittleEndian() bool
- func Sha1(s string) (str string)
- type Uint128
Constants ¶
View Source
const SessionPrefix = "sess_"
Variables ¶
This section is empty.
Functions ¶
func CityHash32 ¶
func CityHash64 ¶
func CityHash64WithSeeds ¶
func CreateSessionId ¶
func GetNowDateTime ¶
func GetNowDateTime() string
func GetRandomToken ¶
func GetSessionIdByUserId ¶
func GetSessionName ¶
func GetSnowflakeId ¶
func GetSnowflakeId() string
func IsLittleEndian ¶
func IsLittleEndian() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.