Documentation ¶
Index ¶
- Variables
- func EncryptPassword(password, salt string) string
- func FileIsExisted(filename string) bool
- func GenCardCode(ctx context.Context, cardLen int, secretKey string) (cardCode string)
- func GenSecret(length int) (secret string)
- func GetCityByIp(ip string) string
- func GetClientIp(ctx context.Context) string
- func GetDomain(ctx context.Context) string
- func GetExt(fileName string) string
- func GetLocalIP() (ip string, err error)
- func GetType(p string) (result string, err error)
- func GetUserAgent(ctx context.Context) string
- func IsNotExistMkDir(src string) error
- func LanZouCloud() *sLanZouCloud
- func MkDir(src string) error
- func ParseCardCode(prefix string, secretKey string)
- func ParseFilePath(pathStr string) (fileName string, fileType string)
- func SetExpireTime(activeTime *gtime.Time, cardType int, value int) (expireTime *gtime.Time, err error)
- func WriteToFile(fileName string, content string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LETTERS_RULES = [...]string{lettersRule1, lettersRule2, lettersRule3, lettersRule4, lettersRule5}
Functions ¶
func GenCardCode ¶
GenCardCode 生成卡号 简单粗暴的生成方式,根据输入的长度,遍历模板 TODO
func LanZouCloud ¶
func LanZouCloud() *sLanZouCloud
func ParseFilePath ¶
解析路径获取文件名称及后缀
func SetExpireTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.