Documentation
¶
Index ¶
- func CheckError(err error) bool
- func ConvAtoUi(str string) (ui uint)
- func CreateTableIfNotExist(db *gorm.DB, tableModels []interface{})
- func GenerateEmailConfirmUrl(token string) (url string)
- func GenerateToken(email string, role string) (tokenString string, err error)
- func GenerateVerifyCode(length int) (verifyString string)
- func GetClaimFromToken(tokenString string) (claims jwt.Claims, err error)
- func GetEmailFromCookie(c *gin.Context) (email string, err error)
- func GetTimeStamp() (t int64)
- func GetTodayStartTimeStamp() (timestamp int64)
- func HashWithSalt(plainText string) (HashText string)
- func ParseTimeStampToReadableTime(timestamp int64) time.Time
- func ReadSettingsFromFile(settingFilePath string) (config ATmodels.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CreateTableIfNotExist ¶
func GenerateEmailConfirmUrl ¶
remind that params which store tokenstr must name token:)
func GenerateVerifyCode ¶
func GetClaimFromToken ¶
func GetTimeStamp ¶
func GetTimeStamp() (t int64)
func GetTodayStartTimeStamp ¶
func GetTodayStartTimeStamp() (timestamp int64)
func HashWithSalt ¶
A Hash function using salt with bcrypt libriry to hash password
func ReadSettingsFromFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.