Documentation ¶
Index ¶
- Variables
- func CheckName(name string) bool
- func CheckSex(sex int64) bool
- func CheckSexS(sexstr string) (int64, bool)
- func CheckUid(uid int64) bool
- func CheckUidS(uidstr string) (int64, bool)
- func GetRedisKey(uid int64) string
- func GetUid() int64
- func GetUidMax() int64
- func InitUidGenerator()
- func SetUidMax(max int64)
- type PingCount
- type PingType
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var CfgPath = ""
View Source
var ErrArgumentError = errors.New("argument error!")
View Source
var ErrFailedCreate = errors.New("failed to create!")
View Source
var ErrFailedCreateData = fmt.Errorf("data:%w", ErrFailedCreate)
View Source
var ErrInternalError = errors.New("internal error!")
View Source
var ErrNameError = fmt.Errorf("name:%w", ErrArgumentError)
View Source
var ErrNotFound = errors.New("not found!")
View Source
var ErrNotFoundData = fmt.Errorf("data:%w", ErrNotFound)
View Source
var ErrSexError = fmt.Errorf("sex:%w", ErrArgumentError)
View Source
var ErrUidError = fmt.Errorf("uid:%w", ErrArgumentError)
Functions ¶
func GetRedisKey ¶
func InitUidGenerator ¶ added in v1.1.0
func InitUidGenerator()
Types ¶
Click to show internal directories.
Click to hide internal directories.