Documentation
¶
Index ¶
- func GenPasswordHash(password []byte) ([]byte, error)
- func Md5(str []byte) string
- func ValidatePasswordHash(password string, hashed string) bool
- type Sqids
- func (s *Sqids) DeAdminUserId(id string) (int64, error)
- func (s *Sqids) DePlatformUserId(id string) (int64, error)
- func (s *Sqids) DeUserDeviceSwitch(id string) (int, error)
- func (s *Sqids) EnAdminUserId(userId int64) (string, error)
- func (s *Sqids) EnPlatformUserId(userId int64) (string, error)
- func (s *Sqids) EnUserDeviceSwitch(deviceId int) (string, error)
- type SqidsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sqids ¶
type Sqids struct {
// contains filtered or unexported fields
}
func InitSqids ¶
func InitSqids(config SqidsConfig) *Sqids
type SqidsConfig ¶
Click to show internal directories.
Click to hide internal directories.