Documentation ¶
Index ¶
- func GenToken(userId int64) (string, error)
- func GetDeviceID(sid int64) (datacenterid, workerid int64)
- func GetGenTime(sid int64) (t string)
- func GetGenTimestamp(sid int64) (timestamp int64)
- func GetMQUrl() string
- func GetMysqlDSN() string
- func GetTimestamp(sid int64) (timestamp int64)
- func GetTimestampStatus() (state float64)
- type Snowflake
- type UserClaim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlDSN ¶
func GetMysqlDSN() string
Types ¶
type Snowflake ¶
func NewSnowflake ¶
Click to show internal directories.
Click to hide internal directories.