Documentation ¶
Index ¶
- Variables
- func CheckBalance(balance float64) error
- func CheckField(field string) bool
- func CheckPassword(hashPassword, password string) bool
- func GenFilenameWithDir(filename string) (string, error)
- func GeneratePassword(password string) (string, error)
- func GetContentType(filePath string) string
- func IsChangeablePassword(userPassword, password string) error
- func PutAdditionalSettings()
- func ReadSettings()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSigningKey = errors.New("invalid signing method") ErrInvalidTypeOfClaims = errors.New("token claims are not type of `*tokenClaims`") ErrUserIdNotFound = errors.New("user id not found") ErrTooMuchBalance = errors.New("too much balance, your limit is under 5000") ErrInvalidAccountName = errors.New("invalid account name") ErrUnsupportedMediaType = errors.New("unsupported media type, type must be 'jpg' or 'jpeg'") ErrInvalidName = errors.New("invalid name") ErrInvalidType = errors.New("invalid type") )
View Source
var AppSettings models.Settings
Functions ¶
func CheckBalance ¶
func CheckField ¶
func CheckPassword ¶
func GenFilenameWithDir ¶
func GeneratePassword ¶
func GetContentType ¶
func IsChangeablePassword ¶
func PutAdditionalSettings ¶
func PutAdditionalSettings()
func ReadSettings ¶
func ReadSettings()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.