Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptCheck ¶ added in v0.0.2
BcryptCheck 对比明文密码和数据库的哈希值
func BcryptHash ¶ added in v0.0.2
BcryptHash 使用 bcrypt 对密码进行加密
func RandomLower ¶
func RandomNumber ¶
func SnowflakeId ¶
func SnowflakeId() int64
Types ¶
type SnowflakeWorker ¶
type SnowflakeWorker struct {
// contains filtered or unexported fields
}
func NewSnowflakeWorker ¶
func NewSnowflakeWorker(workerId int64) (*SnowflakeWorker, error)
func (*SnowflakeWorker) GetId ¶
func (w *SnowflakeWorker) GetId() int64
Click to show internal directories.
Click to hide internal directories.