Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateDeviceInfo(deviceInfo string) error
- func ValidateIP(ip string) error
- func ValidateLogin(login string) error
- func ValidateName(name string) error
- func ValidatePassword(password string) error
- func ValidateSessionToken(token string) error
- func ValidateUsernameBase(uname string) error
Constants ¶
View Source
const ( Name = `^.*$` Login = `^[a-zA-Z0-9][a-zA-Z0-9_]*$` DeviceInf = `^.{,150}$` IpAddr = `^(?:(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|(?:[0-9]{1,3}\.){3}[0-9]{1,3})$` )
View Source
const MAX_DEVICE_INF_LEN = 150
View Source
const MAX_LOGIN_LEN = 40
View Source
const MAX_NAME_LEN = 40
View Source
const MIN_DEVICE_INF_LEN = 150
View Source
const MIN_LOGIN_LEN = 3
View Source
const MIN_NAME_LEN = 1
View Source
const MIN_PASSWORD_LEN = 6
Variables ¶
Functions ¶
func ValidateDeviceInfo ¶
func ValidateIP ¶
func ValidateLogin ¶
func ValidateName ¶
func ValidatePassword ¶
func ValidateSessionToken ¶
func ValidateUsernameBase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.